geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/service MBeanMetadata.java
Date Sun, 16 Nov 2003 00:51:24 GMT
djencks     2003/11/15 16:51:24

  Modified:    modules/kernel/src/java/org/apache/geronimo/kernel/deployment/service
                        MBeanMetadata.java
  Log:
  Provide default values for constructor args
  
  Revision  Changes    Path
  1.5       +7 -3      incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/service/MBeanMetadata.java
  
  Index: MBeanMetadata.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/service/MBeanMetadata.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MBeanMetadata.java	15 Nov 2003 07:37:37 -0000	1.4
  +++ MBeanMetadata.java	16 Nov 2003 00:51:24 -0000	1.5
  @@ -72,6 +72,10 @@
    * @version $Revision$ $Date$
    */
   public class MBeanMetadata {
  +
  +    private final String[] NO_TYPES = new String[0];
  +    private final Object[] NO_ARGS = new Object[0];
  +
       private String code;
       private String geronimoMBeanDescriptor;
   
  @@ -80,8 +84,8 @@
       private ObjectName loaderName;
       private ObjectName parentName;
       private URI baseURI;
  -    private String[] constructorTypes;
  -    private Object[] constructorArgs;
  +    private String[] constructorTypes = NO_TYPES;
  +    private Object[] constructorArgs = NO_ARGS;
       private final Map attributeValues = new HashMap();
       private final Set relationships = new HashSet();
       private final Set dependencies = new HashSet();
  
  
  

Mime
View raw message