geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r378347 - /geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfoBuilder.java
Date Thu, 16 Feb 2006 19:34:59 GMT
Author: dblevins
Date: Thu Feb 16 11:34:56 2006
New Revision: 378347

URL: http://svn.apache.org/viewcvs?rev=378347&view=rev
Log:
Added additional createStatic method signature

Modified:
    geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfoBuilder.java

Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfoBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfoBuilder.java?rev=378347&r1=378346&r2=378347&view=diff
==============================================================================
--- geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfoBuilder.java
(original)
+++ geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfoBuilder.java
Thu Feb 16 11:34:56 2006
@@ -82,6 +82,13 @@
         return createStatic(sourceClass, gbeanType.getName(), gbeanType, null, j2eeType);
     }
 
+    public static GBeanInfoBuilder createStatic(Class sourceClass, String name, Class gbeanType,
String j2eeType) {
+        if (sourceClass == null) throw new NullPointerException("sourceClass is null");
+        if (name == null) throw new NullPointerException("name is null");
+        if (gbeanType == null) throw new NullPointerException("gbeanType is null");
+        return createStatic(sourceClass, name, gbeanType, null, j2eeType);
+    }
+
     public static GBeanInfoBuilder createStatic(Class sourceClass, String name, Class gbeanType,
GBeanInfo source, String j2eeType) {
         if (sourceClass == null) throw new NullPointerException("sourceClass is null");
         if (name == null) throw new NullPointerException("name is null");



Mime
View raw message