User: juhalindfors
  Date: 02/01/28 15:31:35

  Modified:    src/main/javax/management/loading
                        DefaultLoaderRepository.java
  Log:
  JBossMX system properties moved to ServerConstants
  DefaultLoaderRepository.loaders delegates to LoaderRepository.loaders
  LoaderRepository now an abstract class
  
  Revision  Changes    Path
  1.2       +39 -18    
jmx/src/main/javax/management/loading/DefaultLoaderRepository.java
  
  Index: DefaultLoaderRepository.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jmx/src/main/javax/management/loading/DefaultLoaderRepository.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultLoaderRepository.java      2001/12/03 02:08:48     1.1
  +++ DefaultLoaderRepository.java      2002/01/28 23:31:35     1.2
  @@ -1,36 +1,57 @@
   /*
  - * LGPL
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
    */
   package javax.management.loading;
   
   import java.util.Vector;
  +import java.io.Serializable;
  +import java.lang.reflect.Method;
   
   import org.jboss.mx.loading.LoaderRepository;
   import org.jboss.mx.loading.BasicLoaderRepository;
  +import org.jboss.mx.server.ServerConstants;
  +import org.jboss.mx.server.MBeanServerImpl;
   
  -public class DefaultLoaderRepository extends java.lang.Object implements 
java.io.Serializable {
  -
  -
  -   protected static java.util.Vector loaders = new Vector();
  -
  -   private static LoaderRepository repository = BasicLoaderRepository.getInstance();
  -   
  -   public DefaultLoaderRepository() {
  -   
  +/**
  + *
  + * @see org.jboss.mx.loading.LoaderRepository
  + * @see org.jboss.mx.loading.BasicLoaderRepository
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>.
  + * @version $Revision: 1.2 $  
  + */
  +public class DefaultLoaderRepository
  +     implements Serializable
  +{
  +
  +   // Attributes ----------------------------------------------------
  +   protected static Vector loaders = null;
  +   private static LoaderRepository repository = null;
  +
  +   // Constructors --------------------------------------------------
  +   public DefaultLoaderRepository()
  +   {
      }
   
  -   public static Class loadClass(String className) throws ClassNotFoundException {
  -     return repository.loadClass(className);
  +   // Static --------------------------------------------------------
  +   static 
  +   {
  +      repository = LoaderRepository.getDefaultLoaderRepository();
  +      loaders = repository.getLoaders();
      }
  +   
  +   public static Class loadClass(String className) throws ClassNotFoundException
  +   {
  +      return repository.loadClass(className);
  +   }
   
  -   public static Class loadClassWithout(ClassLoader loader, String className) 
throws ClassNotFoundException {
  +   public static Class loadClassWithout(ClassLoader loader, String className) 
throws ClassNotFoundException
  +   {
         return repository.loadClassWithout(loader, className);
      }
  -
  -
  -
  -
  -
   
   }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to