"alesj" wrote :
| But what to do with stop, destroy and uninstalls?
|
| | try {
| | uninstallMethod.invoke(target, VMD::get)
| | } finally {
| | VDM::unget
| | }
| |
| whereas service could still hold onto the ref - which might be an issue if that ref is
ServiceFactory,
| as ServiceFactory::unget could modify the actual created service.
|
Another problem/ugliness that I see is the usage of "external" service to do
proper parameter type matching at uninstall.
e.g. bean + parameters at uninstalls, bean + parameters in value-factory, ...
This can be "properly" dealt with double call to ungetTarget.
| if (unget)
| {
| try
| {
| Object target = context.getTarget();
| // do parameter type matching
| ...
| }
| finally
| {
| context.ungetTarget();
| }
| context.ungetTarget();
| }
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266147#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...