From: Adrian B. <ej...@us...> - 2004-04-19 23:47:15
|
User: ejort Date: 04/04/19 16:47:08 Modified: src/main/org/jboss/mx/server/registry BasicMBeanRegistry.java Log: You cannot reference the outer mbean during construction of the chain - that would be chicken/egg Maybe the CLR access should be dynamic if we have a wrapping mbeanserver that wants to do funny things? Revision Changes Path 1.54 +4 -3 jmx/src/main/org/jboss/mx/server/registry/BasicMBeanRegistry.java Index: BasicMBeanRegistry.java =================================================================== RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/server/registry/BasicMBeanRegistry.java,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- BasicMBeanRegistry.java 19 Apr 2004 23:28:03 -0000 1.53 +++ BasicMBeanRegistry.java 19 Apr 2004 23:47:08 -0000 1.54 @@ -31,6 +31,7 @@ import javax.management.ReflectionException; import javax.management.RuntimeErrorException; import javax.management.RuntimeOperationsException; +import javax.management.loading.ClassLoaderRepository; import javax.management.modelmbean.ModelMBeanInfo; import EDU.oswego.cs.dl.util.concurrent.SynchronizedLong; @@ -66,7 +67,7 @@ * @author <a href="mailto:jh...@vo...">Jeff Haynie</a>. * @author <a href="mailto:tho...@jb...">Thomas Diesler</a>. * - * @version $Revision: 1.53 $ + * @version $Revision: 1.54 $ */ public class BasicMBeanRegistry implements MBeanRegistry @@ -127,7 +128,7 @@ /** * Constructs a new BasicMBeanRegistry.<p> */ - public BasicMBeanRegistry(MBeanServer server, String defaultDomain) + public BasicMBeanRegistry(MBeanServer server, String defaultDomain, ClassLoaderRepository clr) { // Store the context this.server = server; @@ -135,7 +136,7 @@ try { - loaderRepository = (LoaderRepository)server.getClassLoaderRepository(); + loaderRepository = (LoaderRepository) clr; mbeanInfoService = new ObjectName("user:service=MBeanInfoDB"); } catch (Exception e) |