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/01/14 21:39:56 UTC
cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean GBeanInfoFactory.java
djencks 2004/01/14 12:39:56
Modified: modules/kernel/src/java/org/apache/geronimo/gbean
GBeanInfoFactory.java
Log:
add some more constructors to aid in stepwise info assembly
Revision Changes Path
1.2 +14 -1 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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- GBeanInfoFactory.java 12 Jan 2004 01:38:55 -0000 1.1
+++ GBeanInfoFactory.java 14 Jan 2004 20:39:56 -0000 1.2
@@ -82,8 +82,21 @@
this.className = className;
}
+ public GBeanInfoFactory(String name, String description, String className, GBeanInfoFactory source) {
+ this(name, description, className);
+ assert source != null;
+ attributes.addAll(source.attributes);
+ operations.addAll(source.operations);
+ endpoints.addAll(source.endpoints);
+ notifications.addAll(source.notifications);
+ }
+
public GBeanInfoFactory(String className) {
this(className, null, className);
+ }
+
+ public GBeanInfoFactory(String className, GBeanInfoFactory source) {
+ this(className, null, className, source);
}
public void addAttribute(GAttributeInfo info) {