Common code should be in SubDeployerSupport.

I even created a SimpleSubDeployerSupport, that models more how deployment 
should be done, rather than exposing all the details of SubDeployerSupport.

1) Define your extension - getExtension()
2) Define where your metadata xml exists relative the main deployment - 
getMetaDataURL()
3) Define your deployment's ObjectName - getObjectName()
4) Define your deployment's class - getDeploymentClass()
5) Define your xml parsing - getObjectModelFactory()

The idea is that the deployer creates an MBean for each deployment.

Then the SimpleSubDeployer will create the MBeans of type getDeploymentClass()
with the name getObjectName() for each deployment and handle the lifecycle for 
you,
including injecting the parsed xml document's javabean equivalent into the 
deployment

The RAR deployer is currently the only one that uses it.

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to