[jboss-dev-forums] [JBoss OSGi Development] - Re: Service integration with MC

alesj do-not-reply at jboss.com
Wed Nov 18 11:31:27 EST 2009


"adrian at jboss.org" wrote : 
  | Anything you getTarget() during the install() phase should have
  | a corresponding ungetTarget() during the uninstall() of the lifecycle.
  | 
Sure, that's what I'm doing, for symmetric usage that's trivial/natural to support.
But that's not the case with our installs, actually uninstalls.

e.g.
my install - someXInstall(Foo foo, Bar bar, int x)
"matching" uninstall undoXInstall(Baz baz, double y)
Where we inject this Baz instance. 

And since this is the last time we actually know something about this injection, 
we need to clean it up right after the invocation. Or how else?

See doUninstalls:
* http://anonsvn.jboss.org/repos/jbossas/projects/kernel/trunk/kernel/src/main/java/org/jboss/kernel/plugins/dependency/InstallsAwareAction.java

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

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



More information about the jboss-dev-forums mailing list