Here is an update to the issue
I removed the LifecycleCallbackItem and its associated Thread
Instead I use a wrapper around the Deployers that are associated with the MainDeployer
http://anonsvn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runti...
This still relies on implementation detail and I'd like to replace the wrapper with
some kind of listener that I can associate with the MainDeployer.
| public OSGiDeployersWrapper(MainDeployer mainDeployer, OSGiBundleManager
bundleManager)
| {
| if (bundleManager == null)
| throw new IllegalArgumentException("Null bundleManager");
| if (mainDeployer instanceof MainDeployerImpl == false)
| throw new IllegalStateException("Cannot instrument: " +
mainDeployer);
|
| this.mainDeployer = mainDeployer;
| this.bundleManager = bundleManager;
|
| // Swap the deployers implementation
| MainDeployerImpl mainDeployerImpl = (MainDeployerImpl)mainDeployer;
| this.deployers = mainDeployerImpl.getDeployers();
| mainDeployerImpl.setDeployers(this);
| }
|
| public void process(List<DeploymentContext> deploy,
List<DeploymentContext> undeploy)
| {
| // Delegate to the original deployers
| deployers.process(deploy, undeploy);
|
| // OSGi bundles resolve phase
| afterDeployersProcess(deploy, undeploy);
| }
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253629#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...