Author: charles.crouch(a)jboss.com
Date: 2008-12-17 16:28:44 -0500 (Wed, 17 Dec 2008)
New Revision: 76
Modified:
trunk/core/src/main/java/org/jboss/on/embedded/manager/pc/PluginContainerResourceManager.java
Log:
EMBJOPR-55 get rid unnecessary raising of Events, this should now be handled by the
EventListener
Modified:
trunk/core/src/main/java/org/jboss/on/embedded/manager/pc/PluginContainerResourceManager.java
===================================================================
---
trunk/core/src/main/java/org/jboss/on/embedded/manager/pc/PluginContainerResourceManager.java 2008-12-17
20:52:41 UTC (rev 75)
+++
trunk/core/src/main/java/org/jboss/on/embedded/manager/pc/PluginContainerResourceManager.java 2008-12-17
21:28:44 UTC (rev 76)
@@ -253,7 +253,6 @@
if (response.getStatus() == DeleteResourceStatus.SUCCESS)
{
discoverServicesSync();
- //Events.instance().raiseEvent(ResourceManager.RESOURCE_DELETED_EVENT,
resource);
}
}
catch (PluginContainerException e)
@@ -290,8 +289,7 @@
response =
getResourceFactoryService().executeCreateResourceImmediately(request);
if (response.getStatus() == CreateResourceStatus.SUCCESS)
{
- discoverServicesSync();
- Events.instance().raiseEvent(ResourceManager.RESOURCE_CREATED_EVENT,
resourceType, parentResource);
+ discoverServicesSync();
}
}
catch (PluginContainerException e)
Show replies by date