This content has been marked as final.
Show 2 replies
-
1. Re: Deployers schema
adrian.brock Mar 28, 2008 8:13 AM (in response to adrian.brock)e.g. all this could be made to look a lot nicer and easier to understand with use case xml
<!-- The MainDeployer --> <bean name="MainDeployer" class="org.jboss.deployers.plugins.main.MainDeployerImpl"> <property name="structuralDeployers"><inject bean="StructuralDeployers"/></property> <property name="deployers"><inject bean="Deployers"/></property> <property name="mgtDeploymentCreator"><inject bean="ManagedDeploymentCreator"/></property> </bean> <!-- The ManagedDeploymentCreator implementation --> <bean name="ManagedDeploymentCreator" class="org.jboss.deployers.plugins.managed.DefaultManagedDeploymentCreator" /> <!-- 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> <!-- Accept any implementor of structure deployer --> <incallback method="addDeployer"/> <uncallback method="removeDeployer"/> </bean> <!-- The holder for deployers that do real deployment --> <bean name="Deployers" class="org.jboss.deployers.plugins.deployers.DeployersImpl"> <constructor><parameter><inject bean="jboss.kernel:service=KernelController"/></parameter></constructor> <!-- Accept any implementor of deployer --> <incallback method="addDeployer"/> <uncallback method="removeDeployer"/> </bean> <!-- A declared structure descriptor deployer --> <bean name="DeclaredStructure" class="org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure"></bean> <!-- WAR Structure --> <bean name="WARStructure" class="org.jboss.deployers.vfs.plugins.structure.war.WARStructure"> <property name="webInfLibFilter"> <!-- We accept all .jar files in WEB-INF/lib --> <bean name="WebInfLibFilter" class="org.jboss.virtual.plugins.vfs.helpers.SuffixMatchFilter"> <constructor><parameter class="java.lang.String">.jar</parameter></constructor> </bean> </property> </bean> <!-- JAR Structure --> <bean name="JARStructure" class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure"> <!-- Unless specified the default list of suffixes is .zip, .ear, .jar, ,.rar, .war, .sar, .har, .aop --> <constructor> <parameter> <set elementClass="java.lang.String"> <value>.zip</value> <value>.ear</value> <value>.jar</value> <value>.rar</value> <value>.war</value> <value>.sar</value> <value>.har</value> <value>.aop</value> <value>.deployer</value> <value>.beans</value> </set> </parameter> </constructor> <property name="candidateStructureVisitorFactory"> <!-- Any file that is not an ordinary directory is a candidate --> <bean name="JARStructureCandidates" class="org.jboss.deployers.vfs.spi.structure.helpers.DefaultCandidateStructureVisitorFactory"> <!-- A filter to exclude some obvious non-subdeployments --> <property name="filter"> <bean name="JARFilter" class="org.jboss.virtual.plugins.vfs.helpers.SuffixesExcludeFilter"> <constructor><parameter> <list elementClass="java.lang.String"> <!-- Exclude class files as subdeployments --> <value>.class</value> </list> </parameter></constructor> </bean> </property> </bean> </property> </bean> <!-- File Structure --> <bean name="FileStructure" class="org.jboss.deployers.vfs.plugins.structure.file.FileStructure"> <!-- Unless specified the default list of suffixes is -service.xml, -beans.xml, -ds.xml, -aop.xml --> <constructor> <parameter> <set elementClass="java.lang.String"> <value>-service.xml</value> <value>-beans.xml</value> <value>-ds.xml</value> <value>-aop.xml</value> </set> </parameter> </constructor> </bean>
P.S. I'm not saying you should do that now. Concentrate on getting CR1 features
done. These are implementation details that can be done after that.
If you're not changing a SPI or fixing an important bug then its not a priority for CR1 -
2. Re: Deployers schema
alesj Mar 28, 2008 6:45 PM (in response to adrian.brock)"adrian@jboss.org" wrote:
Don't you think there's likely to be other top level elements in the deployer's schema?
Sure. ;-)
But by the time you, me or somebody else thinks of another feature, why trouble him with details.
I thought David's posts exposed that. ;-)
- http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139118#4139118
No intention to diss David, but I think that's a clear example of why having this is more important that being totally strict.
It's not like JBossXB is GA. ;-)