[jboss-cvs] microkernel/src/main/org/jboss/kernel/plugins/config/property ...

Adrian Brock adrian.brock at jboss.com
Tue Jul 11 08:09:14 EDT 2006


  User: adrian  
  Date: 06/07/11 08:09:14

  Modified:    src/main/org/jboss/kernel/plugins/config/property 
                        PropertyKernelConfig.java
  Log:
  [JBMICROCONT-70] - Make a start on integrating the meta data repository
  
  Revision  Changes    Path
  1.13      +12 -2     microkernel/src/main/org/jboss/kernel/plugins/config/property/PropertyKernelConfig.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PropertyKernelConfig.java
  ===================================================================
  RCS file: /cvsroot/jboss/microkernel/src/main/org/jboss/kernel/plugins/config/property/PropertyKernelConfig.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- PropertyKernelConfig.java	23 Jun 2006 10:07:11 -0000	1.12
  +++ PropertyKernelConfig.java	11 Jul 2006 12:09:14 -0000	1.13
  @@ -35,6 +35,7 @@
   import org.jboss.kernel.spi.config.KernelConfigurator;
   import org.jboss.kernel.spi.dependency.KernelController;
   import org.jboss.kernel.spi.event.KernelEventManager;
  +import org.jboss.kernel.spi.metadata.KernelMetaDataRepository;
   import org.jboss.kernel.spi.registry.KernelBus;
   import org.jboss.kernel.spi.registry.KernelRegistry;
   
  @@ -43,7 +44,7 @@
    * 
    * @author <a href="adrian at jboss.com">Adrian Brock</a>
    * @author <a href="mailto:les.hazlewood at jboss.org">Les A. Hazlewood</a>
  - * @version $Revision: 1.12 $
  + * @version $Revision: 1.13 $
    */
   public class PropertyKernelConfig extends AbstractKernelConfig
   {
  @@ -128,6 +129,14 @@
         );
      }
   
  +   public KernelMetaDataRepository createKernelMetaDataRepository() throws Throwable
  +   {
  +      return (KernelMetaDataRepository) getImplementation(
  +         KernelConstants.KERNEL_METADATA_REPOSITORY_PROPERTY,
  +         KernelConstants.KERNEL_METADATA_REPOSITORY_CLASS
  +      );
  +   }
  +
      /**
       * Get the implementation for a type
       * 
  @@ -144,7 +153,8 @@
         if (log.isTraceEnabled())
            log.trace(type + " using implementation " + className); 
   
  -      BeanInfo info = getBeanInfo(className, getClass().getClassLoader());
  +      ClassLoader cl = Configurator.getClassLoader((BeanMetaData) null);
  +      BeanInfo info = getBeanInfo(className, cl);
         BeanMetaData metaData = getBeanMetaData(info, className);
         return Configurator.instantiateAndConfigure(this, info, metaData);
      }
  
  
  



More information about the jboss-cvs-commits mailing list