geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/service MBeanMetadata.java
Date Tue, 11 Nov 2003 04:36:51 GMT
dain        2003/11/10 20:36:51

  Modified:    modules/kernel/src/java/org/apache/geronimo/kernel/deployment/service
                        MBeanMetadata.java
  Log:
  Replaced GeronimoMBeanInfo with descriptor.
  GeronimoMBeanInfo can not be loaded until the class loader in created.
  
  Revision  Changes    Path
  1.2       +10 -15    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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MBeanMetadata.java	8 Sep 2003 04:38:33 -0000	1.1
  +++ MBeanMetadata.java	11 Nov 2003 04:36:51 -0000	1.2
  @@ -64,8 +64,6 @@
   import java.util.Set;
   import javax.management.ObjectName;
   
  -import org.apache.geronimo.kernel.service.GeronimoMBeanInfo;
  -
   /**
    * Metadata about an MBean that is use during deployment.
    *
  @@ -73,7 +71,7 @@
    */
   public class MBeanMetadata {
       private String code;
  -    private GeronimoMBeanInfo geronimoMBeanInfo;
  +    private String geronimoMBeanDescriptor;
       private ObjectName name;
       private ObjectName loaderName;
       private ObjectName parentName;
  @@ -109,13 +107,6 @@
           this.parentName = parentName;
       }
   
  -    public MBeanMetadata(ObjectName name, GeronimoMBeanInfo geronimoMBeanInfo, ObjectName
loaderName, ObjectName parentName) {
  -        this.name = name;
  -        this.geronimoMBeanInfo = geronimoMBeanInfo;
  -        this.loaderName = loaderName;
  -        this.parentName = parentName;
  -    }
  -
       public String getCode() {
           return code;
       }
  @@ -124,12 +115,16 @@
           this.code = code;
       }
   
  -    public GeronimoMBeanInfo getGeronimoMBeanInfo() {
  -        return geronimoMBeanInfo;
  +    public boolean isGeronimoMBean() {
  +        return geronimoMBeanDescriptor != null;
  +    }
  +
  +    public String getGeronimoMBeanDescriptor() {
  +        return geronimoMBeanDescriptor;
       }
   
  -    public void setGeronimoMBeanInfo(GeronimoMBeanInfo geronimoMBeanInfo) {
  -        this.geronimoMBeanInfo = geronimoMBeanInfo;
  +    public void setGeronimoMBeanDescriptor(String geronimoMBeanDescriptor) {
  +        this.geronimoMBeanDescriptor = geronimoMBeanDescriptor;
       }
   
       public ObjectName getName() {
  
  
  

Mime
View raw message