[jboss-dev-forums] [Design of POJO Server] - Re: Using temp at undeploy
alesj
do-not-reply at jboss.com
Thu Jan 29 06:02:32 EST 2009
"scott.stark at jboss.org" wrote : I'm looking through the changes, and it appears this automatically identifies contexts as temps if a specified metadata file exists. In the server we would presumably register all know deployment descriptors?
|
You register what you like. :-)
You can either change whole StructureProcessor impl,
or you can just add custom ModificationTypeMatcher(s).
My drive for this was Seam's request to have temp for all Seam apps,
hence I needed to recognize/match deployments that are possible Seam apps.
This is what we need to add in order to make it happen:
| <bean name="ModificationTypeStructureProcessor" class="org.jboss.deployers.vfs.plugins.structure.modify.ModificationTypeStructureProcessor">
| <incallback method="addMatcher"/>
| <uncallback method="removeMatcher"/>
| </bean>
|
| <!-- The holder for deployers that determine structure -->
| <bean name="StructuralDeployers" class="org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl">
| <property name="structureBuilder">
| <!-- The consolidator of the structure information -->
| <bean name="StructureBuilder" class="org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder">
| <property name="structureProcessor"><inject bean="ModificationTypeStructureProcessor"/></property>
| </bean>
| </property>
|
| public class SeamModificationTypeMatcher extends TempTopModificationTypeMatcher
| {
| public SeamModificationTypeMatcher()
| {
| super(SeamConstants.SEAM_FILES);
| }
| }
|
| <!-- Seam modification type matcher -->
| <bean name="SeamMTMatcher" class="org.jboss.seam.integration.microcontainer.deployers.SeamModificationTypeMatcher"/>
|
|
"scott.stark at jboss.org" wrote :
| Its possible to have a nested deployment that has no descriptors. In that case you still will have to include a jboss-structure.xml I take it?
|
Yes.
Or you can write a different StructureProcessor or
a ModificationTypeMatcher that doesn't 'work' on descriptors;
e.g. might work on classpath or predetermined attachments
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205499#4205499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205499
More information about the jboss-dev-forums
mailing list