You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dj...@apache.org on 2004/07/11 22:56:41 UTC

cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean GBeanInfoFactory.java

djencks     2004/07/11 13:56:41

  Modified:    modules/kernel/src/java/org/apache/geronimo/gbean
                        GBeanInfoFactory.java
  Log:
  provide a couple more constructors that work in another classloader
  
  Revision  Changes    Path
  1.21      +11 -3     incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfoFactory.java
  
  Index: GBeanInfoFactory.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfoFactory.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- GBeanInfoFactory.java	2 Jun 2004 05:33:03 -0000	1.20
  +++ GBeanInfoFactory.java	11 Jul 2004 20:56:41 -0000	1.21
  @@ -66,6 +66,14 @@
           this(checkNotNull(clazz).getName(), clazz.getName(), source);
       }
   
  +    public GBeanInfoFactory(String name, GBeanInfo source) {
  +        this(checkNotNull(name), name, source);
  +    }
  +
  +    public GBeanInfoFactory(String name, ClassLoader cl) {
  +        this(checkNotNull(name), name, GBeanInfo.getGBeanInfo(name, cl));
  +    }
  +
       public GBeanInfoFactory(String name, Class clazz, GBeanInfo source) {
           this(name, checkNotNull(clazz).getName(), source);
       }
  @@ -101,7 +109,7 @@
       /**
        * Checks whether or not the input argument is null; otherwise it throws
        * {@link IllegalArgumentException}.
  -     * 
  +     *
        * @param clazz the input argument to validate
        * @throws IllegalArgumentException if input is null
        */
  @@ -115,7 +123,7 @@
       /**
        * Checks whether or not the input argument is null; otherwise it throws
        * {@link IllegalArgumentException}.
  -     * 
  +     *
        * @param string the input argument to validate
        * @throws IllegalArgumentException if input is null
        */