Object pojo = getServiceObject();
if (pojo == null)
return;
PropertyInjectionHandler handler = (PropertyInjectionHandler) ApamInstanceManager.this.getHandler(
ApamComponentFactory.APAM_NAMESPACE + ":"+ PropertyInjectionHandler.NAME);
if (apamComponent != null) { // starting the instance
if (handler != null)
handler.setApamComponent(apamComponent);
fireCallbacks(AtomicImplementationDeclaration.Event.INIT,this.apamComponent,false);
return;
}
if (apamComponent == null) { // stopping the instance
fireCallbacks(AtomicImplementationDeclaration.Event.REMOVE,previousComponent,true);
/*
* dispose this instance
*/
if (handler != null)
handler.setApamComponent(null);
ApamInstanceManager.this.dispose();
return;
}