[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Extending jboss-beans.xml schema?

david.lloyd@jboss.com do-not-reply at jboss.com
Fri Mar 6 17:41:40 EST 2009


This is how I do it with all the deployers I've done, like Threads and XNIO and so forth:


  | <deployment xmlns="urn:jboss:bean-deployer:2.0">
  |     <bean name="XnioMetaDataDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryDeployer">
  |         <constructor>
  |             <parameter>org.jboss.xnio.metadata.XnioMetaData</parameter>
  |         </constructor>
  |     </bean>
  | 
  |     <bean name="XnioParserDeployer" class="org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer">
  |         <constructor>
  |             <parameter>org.jboss.xnio.metadata.XnioMetaData</parameter>
  |         </constructor>
  |         <property name="name">jboss-xnio.xml</property>
  |         <property name="registerWithJBossXB">true</property>
  |     </bean>
  | 
  | </deployment>
  | 
  | 

Then XnioMetaData implements BeanMetaDataFactory, which allows "xnio" elements to exist directly under "deployment" elements.  I'm not sure if this is what you're looking for though...


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215893#4215893

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215893



More information about the jboss-dev-forums mailing list