User: juhalindfors
  Date: 01/12/10 09:20:04

  Modified:    src/main/javax/management MBeanInfo.java
  Log:
  more stylings
  
  Revision  Changes    Path
  1.3       +55 -35    jmx/src/main/javax/management/MBeanInfo.java
  
  Index: MBeanInfo.java
  ===================================================================
  RCS file: /cvsroot/jboss/jmx/src/main/javax/management/MBeanInfo.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MBeanInfo.java    2001/12/08 22:20:05     1.2
  +++ MBeanInfo.java    2001/12/10 17:20:04     1.3
  @@ -1,10 +1,27 @@
   /*
  - * LGPL
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
    */
   package javax.management;
   
  -public class MBeanInfo implements Cloneable, java.io.Serializable
  +/**
  + * Describes an MBeans' management interface.
  + *
  + * @see javax.management.MBeanServer
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>.
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Trevor Squires</a>.
  + *
  + * @version $Revision: 1.3 $
  + *   
  + */
  +public class MBeanInfo
  +   implements Cloneable, java.io.Serializable
   {
  +   
  +   // Attributes ----------------------------------------------------
      protected String className = null;
      protected String description = null;
      protected MBeanAttributeInfo[] attributes = null;
  @@ -12,8 +29,8 @@
      protected MBeanOperationInfo[] operations = null;
      protected MBeanNotificationInfo[] notifications = null;
   
  -   public MBeanInfo(java.lang.String className,
  -                    java.lang.String description,
  +   // Constructors --------------------------------------------------
  +   public MBeanInfo(String className, String description,
                       MBeanAttributeInfo[] attributes,
                       MBeanConstructorInfo[] constructors,
                       MBeanOperationInfo[] operations,
  @@ -26,8 +43,40 @@
         this.operations = (null == operations) ? new MBeanOperationInfo[0] : 
operations;
         this.notifications = (null == notifications) ? new MBeanNotificationInfo[0] : 
notifications;
      }
  +
  +   // Public --------------------------------------------------------
  +   public String getClassName()
  +   {
  +      return className;
  +   }
  +
  +   public String getDescription()
  +   {
  +      return description;
  +   }
  +
  +   public MBeanAttributeInfo[] getAttributes()
  +   {
  +      return attributes;
  +   }
   
  -   public java.lang.Object clone() throws CloneNotSupportedException
  +   public MBeanOperationInfo[] getOperations()
  +   {
  +      return operations;
  +   }
  +
  +   public MBeanConstructorInfo[] getConstructors()
  +   {
  +      return constructors;
  +   }
  +
  +   public MBeanNotificationInfo[] getNotifications()
  +   {
  +      return notifications;
  +   }
  +   
  +   // Cloneable implementation --------------------------------------
  +   public Object clone() throws CloneNotSupportedException
      {
         MBeanInfo clone = (MBeanInfo) super.clone();
   
  @@ -68,36 +117,7 @@
         }
   
         return clone;
  -   }
  -
  -   public java.lang.String getClassName()
  -   {
  -      return className;
  -   }
  -
  -   public java.lang.String getDescription()
  -   {
  -      return description;
  -   }
  -
  -   public MBeanAttributeInfo[] getAttributes()
  -   {
  -      return attributes;
  -   }
  -
  -   public MBeanOperationInfo[] getOperations()
  -   {
  -      return operations;
  -   }
  -
  -   public MBeanConstructorInfo[] getConstructors()
  -   {
  -      return constructors;
  -   }
  -
  -   public MBeanNotificationInfo[] getNotifications()
  -   {
  -      return notifications;
      }
  +   
   }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to