Author: ips
Date: 2009-08-12 19:30:00 -0400 (Wed, 12 Aug 2009)
New Revision: 670
Modified:
trunk/core/src/main/java/org/jboss/on/embedded/EmbeddedInventoryEventListener.java
trunk/core/src/main/java/org/jboss/on/embedded/LoggingInventoryEventListener.java
Log:
implement the resourceDeactivated() method, which was just added to the
InventoryEventListener PC interface
Modified:
trunk/core/src/main/java/org/jboss/on/embedded/EmbeddedInventoryEventListener.java
===================================================================
---
trunk/core/src/main/java/org/jboss/on/embedded/EmbeddedInventoryEventListener.java 2009-08-12
03:28:47 UTC (rev 669)
+++
trunk/core/src/main/java/org/jboss/on/embedded/EmbeddedInventoryEventListener.java 2009-08-12
23:30:00 UTC (rev 670)
@@ -91,6 +91,10 @@
return;
}
+ public void resourceDeactivated(Resource resource) {
+ return;
+ }
+
@Observer(ResourceManager.NAV_TREE_INITIALIZED)
public void navTreeInitialized()
{
Modified:
trunk/core/src/main/java/org/jboss/on/embedded/LoggingInventoryEventListener.java
===================================================================
---
trunk/core/src/main/java/org/jboss/on/embedded/LoggingInventoryEventListener.java 2009-08-12
03:28:47 UTC (rev 669)
+++
trunk/core/src/main/java/org/jboss/on/embedded/LoggingInventoryEventListener.java 2009-08-12
23:30:00 UTC (rev 670)
@@ -37,6 +37,7 @@
public void resourcesAdded(Set<Resource> resources)
{
log.trace("The following Resources have been added: " +
toString(resources));
+ return;
}
public void resourcesRemoved(Set<Resource> resources)
@@ -53,11 +54,19 @@
return;
}
+ public void resourceDeactivated(Resource resource) {
+ Set resources = new HashSet();
+ resources.add(resource);
+ log.trace("The following Resource has been deactivated: " +
toString(resources));
+ return;
+ }
+
private static String toString(Set<Resource> resources)
{
StringBuilder stringBuilder = new StringBuilder();
- for (Resource resource : resources)
+ for (Resource resource : resources) {
stringBuilder.append("Resource[").append(resource.getId()).append("]:
").append(resource.getName()).append(", ");
+ }
stringBuilder.delete(stringBuilder.length() - 2, stringBuilder.length());
return stringBuilder.toString();
}
Show replies by date