dain 2004/01/16 16:14:01
Modified: modules/kernel/src/java/org/apache/geronimo/gbean
GConstructorInfo.java
Log:
Added contructor that takes strings.
Revision Changes Path
1.3 +6 -1
incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/GConstructorInfo.java
Index: GConstructorInfo.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/GConstructorInfo.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- GConstructorInfo.java 16 Jan 2004 02:18:06 -0000 1.2
+++ GConstructorInfo.java 17 Jan 2004 00:14:01 -0000 1.3
@@ -61,6 +61,7 @@
import java.util.Iterator;
import java.util.List;
import java.util.Map;
+import java.util.Arrays;
/**
*
@@ -71,6 +72,10 @@
private final List attributeNames;
private final List types;
private final Map attributeTypeMap;
+
+ public GConstructorInfo(String[] attributeNames, Class[] types) {
+ this(Arrays.asList(attributeNames), Arrays.asList(types));
+ }
public GConstructorInfo(List attributeNames, List types) {
assert attributeNames.size() == types.size(): "name count: " +
attributeNames.size() + " does not match type count: " + types.size();