geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean GBeanInfoFactory.java
Date Fri, 13 Feb 2004 04:07:02 GMT
jboynes     2004/02/12 20:07:02

  Modified:    modules/kernel/src/java/org/apache/geronimo/gbean
                        GBeanInfoFactory.java
  Log:
  Add helper methods to avoid needing to create objects in consumers
  
  Revision  Changes    Path
  1.9       +17 -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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- GBeanInfoFactory.java	8 Feb 2004 21:52:59 -0000	1.8
  +++ GBeanInfoFactory.java	13 Feb 2004 04:07:01 -0000	1.9
  @@ -147,6 +147,10 @@
           attributes.addAll(tempAttributes.values());
       }
   
  +    public void addAttribute(String name, boolean persistent) {
  +        attributes.add(new GAttributeInfo(name, persistent));
  +    }
  +
       public void addAttribute(GAttributeInfo info) {
           attributes.add(info);
       }
  @@ -155,12 +159,24 @@
           this.constructor = constructor;
       }
   
  +    public void setConstructor(String[] names, Class[] types) {
  +        constructor = new GConstructorInfo(names, types);
  +    }
  +
       public void addOperation(GOperationInfo info) {
           operations.add(info);
       }
   
  +    public void addOperation(String name, Class[] paramTypes) {
  +        operations.add(new GOperationInfo(name, paramTypes));
  +    }
  +
       public void addReference(GReferenceInfo info) {
           references.add(info);
  +    }
  +
  +    public void addReference(String name, Class type) {
  +        references.add(new GReferenceInfo(name, type));
       }
   
       public void addNotification(GNotificationInfo info) {
  
  
  

Mime
View raw message