[jboss-cvs] JBossAS SVN: r64569 - in projects/microcontainer/trunk: kernel/src/main/org/jboss/kernel/plugins/metadata/basic and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Aug 14 06:12:32 EDT 2007


Author: adrian at jboss.org
Date: 2007-08-14 06:12:31 -0400 (Tue, 14 Aug 2007)
New Revision: 64569

Modified:
   projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/aspects/jmx/JMXLifecycleCallback.java
   projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/metadata/basic/BasicKernelMetaDataRepository.java
Log:
info->debug

Modified: projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/aspects/jmx/JMXLifecycleCallback.java
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/aspects/jmx/JMXLifecycleCallback.java	2007-08-14 04:41:43 UTC (rev 64568)
+++ projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/aspects/jmx/JMXLifecycleCallback.java	2007-08-14 10:12:31 UTC (rev 64569)
@@ -60,7 +60,7 @@
       Object mbean = (registerDirectly ? context.getTarget() 
                                        : new StandardMBean(context.getTarget(), intfClass));
       server.registerMBean(mbean, objectName);
-      log.info("Registered MBean " + objectName);
+      log.debug("Registered MBean " + objectName);
    }
    
    public void uninstall(ControllerContext context) throws Exception
@@ -69,7 +69,7 @@
       JMX jmx = readJmxAnnotation(context);
       ObjectName objectName = createObjectName(context, jmx); 
 
-      log.info("Unregistering MBean " + objectName);
+      log.debug("Unregistering MBean " + objectName);
       server.unregisterMBean(objectName);
    }
    

Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/metadata/basic/BasicKernelMetaDataRepository.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/metadata/basic/BasicKernelMetaDataRepository.java	2007-08-14 04:41:43 UTC (rev 64568)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/metadata/basic/BasicKernelMetaDataRepository.java	2007-08-14 10:12:31 UTC (rev 64569)
@@ -31,6 +31,7 @@
 import org.jboss.beans.metadata.spi.PropertyMetaData;
 import org.jboss.kernel.plugins.config.Configurator;
 import org.jboss.kernel.plugins.metadata.AbstractKernelMetaDataRepository;
+import org.jboss.kernel.spi.config.KernelConfigurator;
 import org.jboss.kernel.spi.dependency.KernelControllerContext;
 import org.jboss.metadata.plugins.context.AbstractMetaDataContext;
 import org.jboss.metadata.plugins.loader.memory.MemoryMetaDataLoader;
@@ -153,9 +154,18 @@
          {
             if (scope.getScopeLevel() == CommonLevels.CLASS)
             {
-               ClassLoader cl = Thread.currentThread().getContextClassLoader();
+               BeanMetaData metaData = context.getBeanMetaData();
+               ClassLoader cl = null;
                try
                {
+                  cl = Configurator.getClassLoader(metaData);
+               }
+               catch (Throwable t)
+               {
+                  throw new RuntimeException("Error getting classloader for " + context.getName(), t);
+               }
+               try
+               {
                   Class clazz = cl.loadClass(scope.getQualifier());
                   retrieval = new AnnotatedElementMetaDataLoader(clazz);
                }




More information about the jboss-cvs-commits mailing list