User: starksm 
  Date: 01/04/22 13:02:35

  Modified:    src/main/org/jboss/util ServiceMBean.java
                        ServiceMBeanSupport.java
  Log:
  Move the ServiceMBeanSupport constants to ServiceMBean.
  
  Revision  Changes    Path
  1.4       +12 -9     jboss/src/main/org/jboss/util/ServiceMBean.java
  
  Index: ServiceMBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/ServiceMBean.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ServiceMBean.java 2000/12/07 15:45:20     1.3
  +++ ServiceMBean.java 2001/04/22 20:02:35     1.4
  @@ -6,24 +6,27 @@
    */
   package org.jboss.util;
   
  -/**
  - *   <description> 
  - *      
  - *   @see <related>
  +/** An interface describing a JBoss service MBean.
  +
  +@see org.jboss.util.Service
  +@see org.jboss.util.ServiceMBeanSupport
  +
    *   @author Rickard �berg ([EMAIL PROTECTED])
  - *   @version $Revision: 1.3 $
  + *   @author [EMAIL PROTECTED]
  + *   @version $Revision: 1.4 $
    */
   public interface ServiceMBean
        extends Service
   {
      // Constants -----------------------------------------------------
  -    
  -   // Static --------------------------------------------------------
  +   public static final String[] states = 
{"Stopped","Stopping","Starting","Started"};
  +   public static final int STOPPED  = 0;
  +   public static final int STOPPING = 1;
  +   public static final int STARTING = 2;
  +   public static final int STARTED  = 3;
   
      // Public --------------------------------------------------------
      public String getName();
  -
      public int getState();
  -   
      public String getStateString();
   }
  
  
  
  1.11      +15 -16    jboss/src/main/org/jboss/util/ServiceMBeanSupport.java
  
  Index: ServiceMBeanSupport.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/ServiceMBeanSupport.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ServiceMBeanSupport.java  2001/04/20 22:42:07     1.10
  +++ ServiceMBeanSupport.java  2001/04/22 20:02:35     1.11
  @@ -16,30 +16,29 @@
      
   import org.jboss.logging.Log;
   
  -/** An abstract base class JBoss services can subclass
  - *      
  - *   @see <related>
  - *   @author Rickard �berg ([EMAIL PROTECTED])
  - *   @author [EMAIL PROTECTED]
  - *   @version $Revision: 1.10 $
  - */
  +/** An abstract base class JBoss services can subclass to implement a
  +service that conforms to the ServiceMBean interface. Subclasses must
  +override {@link #getName() getName} method and should override 
  +{@link #initService() initService}, {@link #startService() startService},
  +{@link #stopService() stopService}, {@link #destroyService() destroyService}
  +as approriate.
  +
  +@see org.jboss.util.ServiceMBean
  +
  +@author Rickard �berg ([EMAIL PROTECTED])
  +@author [EMAIL PROTECTED]
  +@version $Revision: 1.11 $
  +*/
   public abstract class ServiceMBeanSupport
      extends NotificationBroadcasterSupport
  -   implements ServiceMBean, MBeanRegistration, Service
  +   implements ServiceMBean, MBeanRegistration
   {
      // Attributes ----------------------------------------------------
      private int state;
      private MBeanServer server;
  -   public static String[] states = {"Stopped","Stopping","Starting","Started"};
  -   public static int STOPPED  = 0;
  -   public static int STOPPING = 1;
  -   public static int STARTING = 2;
  -   public static int STARTED  = 3;
  -   
      private int id = 0;
  -   
      protected Log log;
  -    
  +
      // Static --------------------------------------------------------
   
      // Public --------------------------------------------------------
  
  
  

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

Reply via email to