Author: manik.surtani(a)jboss.com
Date: 2008-02-08 08:45:23 -0500 (Fri, 08 Feb 2008)
New Revision: 5335
Modified:
core/trunk/src/main/java/org/jboss/cache/factories/ComponentRegistry.java
Log:
Should always name components based on expected type, not instance class since this can be
a proxy or a subclass or implementation that dependent components don't know about.
Modified: core/trunk/src/main/java/org/jboss/cache/factories/ComponentRegistry.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/factories/ComponentRegistry.java 2008-02-08
13:34:16 UTC (rev 5334)
+++ core/trunk/src/main/java/org/jboss/cache/factories/ComponentRegistry.java 2008-02-08
13:45:23 UTC (rev 5335)
@@ -137,7 +137,7 @@
*/
public void registerComponent(Object component, Class type)
{
- registerComponent(component.getClass().getName(), component, type);
+ registerComponent(type.getName(), component, type);
}
/**
Show replies by date