You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by db...@apache.org on 2006/02/16 21:37:44 UTC
svn commit: r378359 -
/geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/GBeanInfoBuilder.java
Author: dblevins
Date: Thu Feb 16 12:37:41 2006
New Revision: 378359
URL: http://svn.apache.org/viewcvs?rev=378359&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=378359&r1=378358&r2=378359&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 12:37:41 2006
@@ -82,6 +82,12 @@
return createStatic(sourceClass, gbeanType.getName(), gbeanType, null, j2eeType);
}
+ public static GBeanInfoBuilder createStatic(Class sourceClass, Class gbeanType, GBeanInfo source, String j2eeType) {
+ if (sourceClass == null) throw new NullPointerException("sourceClass is null");
+ if (gbeanType == null) throw new NullPointerException("gbeanType is null");
+ return createStatic(sourceClass, gbeanType.getName(), gbeanType, source, 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");