commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler ManagedBean.java OperationInfo.java ParameterInfo.java
Date Thu, 26 Dec 2002 18:22:19 GMT
costin      2002/12/26 10:22:19

  Modified:    modeler/src/java/org/apache/commons/modeler ManagedBean.java
                        OperationInfo.java ParameterInfo.java
  Log:
  A bit more debugging, remove unused imports.
  
  I added Serializable to ManagedBean, I'll add it to the others -
  and try to add a .ser source, to cache ( and speed up ) the loading
  process.
  
  Revision  Changes    Path
  1.3       +7 -12     jakarta-commons/modeler/src/java/org/apache/commons/modeler/ManagedBean.java
  
  Index: ManagedBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/ManagedBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ManagedBean.java	8 Aug 2002 05:36:54 -0000	1.2
  +++ ManagedBean.java	26 Dec 2002 18:22:19 -0000	1.3
  @@ -66,11 +66,7 @@
   
   
   import java.util.ArrayList;
  -import javax.management.Descriptor;
  -import javax.management.MBeanException;
  -import javax.management.MBeanParameterInfo;
  -import javax.management.InstanceNotFoundException;
  -import javax.management.RuntimeOperationsException;
  +import javax.management.*;
   import javax.management.modelmbean.InvalidTargetObjectTypeException;
   import javax.management.modelmbean.ModelMBean;
   import javax.management.modelmbean.ModelMBeanAttributeInfo;
  @@ -89,9 +85,8 @@
    * @version $Revision$ $Date$
    */
   
  -public class ManagedBean {
  -
  -
  +public class ManagedBean implements java.io.Serializable
  +{
       // ----------------------------------------------------- Instance Variables
   
   
  
  
  
  1.2       +14 -4     jakarta-commons/modeler/src/java/org/apache/commons/modeler/OperationInfo.java
  
  Index: OperationInfo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/OperationInfo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- OperationInfo.java	30 Apr 2002 20:58:52 -0000	1.1
  +++ OperationInfo.java	26 Dec 2002 18:22:19 -0000	1.2
  @@ -65,6 +65,9 @@
   package org.apache.commons.modeler;
   
   
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
  +
   import javax.management.Descriptor;
   import javax.management.MBeanParameterInfo;
   import javax.management.modelmbean.ModelMBeanOperationInfo;
  @@ -79,6 +82,8 @@
    */
   
   public class OperationInfo extends FeatureInfo {
  +    private static Log log = LogFactory.getLog(OperationInfo.class);
  +
   
   
       // ----------------------------------------------------------- Constructors
  @@ -261,6 +266,11 @@
               impact = ModelMBeanOperationInfo.ACTION_INFO;
           else if ("INFO".equals(getImpact()))
               impact = ModelMBeanOperationInfo.INFO;
  +
  +        if( log.isTraceEnabled())
  +            log.trace("createOperationInfo " + getName() + " " + getReturnType() + " "
+
  +                        getDescription());
  +
           info = new ModelMBeanOperationInfo
               (getName(), getDescription(), parameters,
                getReturnType(), impact);
  
  
  
  1.2       +12 -4     jakarta-commons/modeler/src/java/org/apache/commons/modeler/ParameterInfo.java
  
  Index: ParameterInfo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/ParameterInfo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParameterInfo.java	30 Apr 2002 20:58:52 -0000	1.1
  +++ ParameterInfo.java	26 Dec 2002 18:22:19 -0000	1.2
  @@ -65,6 +65,9 @@
   package org.apache.commons.modeler;
   
   
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
  +
   import javax.management.MBeanParameterInfo;
   
   
  @@ -77,6 +80,8 @@
    */
   
   public class ParameterInfo extends FeatureInfo {
  +    private static Log log = LogFactory.getLog(ParameterInfo.class);
  +
   
   
       // ----------------------------------------------------------- Constructors
  @@ -172,6 +177,9 @@
           if (info != null)
               return (info);
   
  +        if( log.isTraceEnabled())
  +            log.trace("createParameterInfo " + getName() + " " + getType() + " " +
  +                    getDescription());
           // Create and return a new information object
           info = new MBeanParameterInfo
               (getName(), getType(), getDescription());
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message