made about what 'data' to pass the ManagedObjectFactory based on
the event type that probably should be hidden in the factory map.
*/
if (type.equals(ServiceMBean.CREATE_EVENT))
{
ManagedObjectFactory factory = managedObjFactoryMap.getFactory(msg);
if (factory != null)
{
factory.create(mbeanServer, userData);
}
}
else if (type.equals(ServiceMBean.DESTROY_EVENT))
{
ManagedObjectFactory factory = managedObjFactoryMap.getFactory(msg);
if (factory != null)
{
factory.destroy(mbeanServer, userData);
}
}
else if (type.equals(SubDeployer.START_NOTIFICATION))
{
ManagedObjectFactory factory = managedObjFactoryMap.getFactory(msg);
if (factory != null)
{
factory.create(mbeanServer, userData);
}
}
else if (type.equals(SubDeployer.DESTROY_NOTIFICATION))
{
ManagedObjectFactory factory = managedObjFactoryMap.getFactory(msg);
if (factory != null)
{
DeploymentInfo di = (DeploymentInfo) msg.getUserData();
factory.destroy(mbeanServer, di);
}
}
else if (type.equals(MainDeployerConstants.ADD_DEPLOYER))
{
ObjectName deployerName = (ObjectName) msg.getUserData();