From: Adrian B. <ej...@us...> - 2002-02-23 16:10:04
|
User: ejort Date: 02/02/23 08:10:04 Modified: src/main/org/jboss/mx/server/registry MBeanEntry.java Log: Thread context classloading in MBeans Revision Changes Path 1.6 +9 -2 jmx/src/main/org/jboss/mx/server/registry/MBeanEntry.java Index: MBeanEntry.java =================================================================== RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/server/registry/MBeanEntry.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- MBeanEntry.java 29 Jan 2002 03:33:22 -0000 1.5 +++ MBeanEntry.java 23 Feb 2002 16:10:04 -0000 1.6 @@ -16,7 +16,7 @@ * @see org.jboss.mx.server.MBeanServerImpl * * @author <a href="mailto:ju...@jb...">Juha Lindfors</a>. - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ */ public class MBeanEntry { @@ -25,15 +25,17 @@ private String resourceClassName = null; private DynamicMBean invoker = null; private Object resource = null; + private ClassLoader cl = null; // Constructors -------------------------------------------------- - public MBeanEntry(ObjectName objectName, DynamicMBean invoker, Object resource) + public MBeanEntry(ObjectName objectName, DynamicMBean invoker, Object resource, ClassLoader cl) { setObjectName(objectName); this.invoker = invoker; this.resourceClassName = resource.getClass().getName(); this.resource = resource; + this.cl = cl; } // Public -------------------------------------------------------- @@ -60,5 +62,10 @@ public Object getResourceInstance() { return resource; + } + + public ClassLoader getClassLoader() + { + return cl; } } |