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, 20 Feb 2004 17:04:27 GMT
jboynes     2004/02/20 09:04:27

  Modified:    modules/kernel/src/java/org/apache/geronimo/gbean
                        GBeanInfoFactory.java
  Log:
  Add helper for operations with no args
  
  Revision  Changes    Path
  1.10      +6 -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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- GBeanInfoFactory.java	13 Feb 2004 04:07:01 -0000	1.9
  +++ GBeanInfoFactory.java	20 Feb 2004 17:04:27 -0000	1.10
  @@ -70,6 +70,7 @@
    * @version $Revision$ $Date$
    */
   public class GBeanInfoFactory {
  +    private static final Class[] NO_ARGS = {};
       private final String name;
       private final String className;
       private final Set attributes = new HashSet();
  @@ -165,6 +166,10 @@
   
       public void addOperation(GOperationInfo info) {
           operations.add(info);
  +    }
  +
  +    public void addOperation(String name) {
  +        operations.add(new GOperationInfo(name, NO_ARGS));
       }
   
       public void addOperation(String name, Class[] paramTypes) {
  
  
  

Mime
View raw message