This content has been marked as final.
Show 2 replies
-
1. Re: DeploymentUnitRegistry: exists?
alesj Dec 14, 2008 2:05 AM (in response to alrubinger)You can probably combine the usage of
- http://anonsvn.jboss.org/repos/jbossas/projects/jboss-deployers/trunk/deployers-client-spi/src/main/java/org/jboss/deployers/client/spi/DeployerClient.java
- http://anonsvn.jboss.org/repos/jbossas/projects/jboss-deployers/trunk/deployers-structure-spi/src/main/java/org/jboss/deployers/structure/spi/main/MainDeployerStructure.java
e.g.Object mainDeployer = MC.getBean("MainDeployer"); DeployerClient dc = (DeployerClient)mainDeployer; MainDeployerStructure mds = (MainDeployerStructure)mainDeployer; for (Deployment d : dc.getTopLevel()) { DeploymentUnit du = mds.getDeploymentUnit(d.getName()); // do something with du }
I expect the blog when I wake up on Monday. ;-) -
2. Re: DeploymentUnitRegistry: exists?
alrubinger Dec 15, 2008 12:56 AM (in response to alrubinger)Your example works well in my initial integration tests. :)
"alesj" wrote:
I expect the blog when I wake up on Monday. ;-)
I'll take some more time to beef up the test coverage, make proper unit tests (mocking the MC SPIs). But it works as advertised.
S,
ALR