[JBoss Microcontainer Development POJO Server] - Re: AS weld-int
by kabir.khan@jboss.com
"alesj" wrote : "kabir.khan(a)jboss.com" wrote :
| | Another plugin in BeanMetaDataDeployer to handle uninstalls?
| |
| No, BMDD should have no knowledge of Weld's hacks.
| This logic should somehow be placed in WeldKCC(C).
|
I meant extending the (Weld)KernelControllerContextCreator concept to also handle the uninstall so that the BMDD can call out to them. Something along the lines of:
| @Override
| public void undeploy(DeploymentUnit unit, BeanMetaData deployment)
| {
| for (KernelControllerContextCreator creator : controllerContextCreators)
| {
| if (creator.uninstall(unit, deployment, controller))
| break;
| }
| }
|
Without that nothing really knows that it should look for the IB which is registered in MC under a different name from the bean we actually want to install and try to uninstall that. WKCCC could contain the registry and handle this.
Alternatively, I might need an alternative KernelControllerContext implementation that installs the IB under the original name. Once that is created, that could install another bean (IB2) whose job it is to uninstall IB and install the real bean under the original name. However, as you say that could lead to people injecting IB instead of the real bean.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264158#4264158
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264158
14 years, 7 months