User: user57  
  Date: 02/02/16 19:20:37

  Modified:    src/main/org/jboss/system ServiceMBeanSupport.java
  Log:
   o made concreate so that it can be used as a delegate where subclassing it
     is not possible
   o logging construction as trace for problem solving
   o
  
  Revision  Changes    Path
  1.13      +6 -7      jboss/src/main/org/jboss/system/ServiceMBeanSupport.java
  
  Index: ServiceMBeanSupport.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/system/ServiceMBeanSupport.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ServiceMBeanSupport.java  13 Feb 2002 07:51:17 -0000      1.12
  +++ ServiceMBeanSupport.java  17 Feb 2002 03:20:37 -0000      1.13
  @@ -31,7 +31,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
  - * @version $Revision: 1.12 $
  + * @version $Revision: 1.13 $
    *   
    * <p><b>Revisions:</b>
    *
  @@ -45,7 +45,7 @@
    *    <li> Add the own MBean Service Name to be remembered in an attribute
    * </ul>
    */
  -public abstract class ServiceMBeanSupport
  +public class ServiceMBeanSupport
      extends NotificationBroadcasterSupport
      implements ServiceMBean, MBeanRegistration
   {
  @@ -71,13 +71,14 @@
      private int id = 0;
   
      /**
  -    * Initialize <t>ServiceMBeanSupport</tt>.
  +    * Construct a <t>ServiceMBeanSupport</tt>.
       *
       * <p>Sets up logging.
       */
  -   protected ServiceMBeanSupport()
  +   public ServiceMBeanSupport()
      {
         log = Logger.getLogger(getClass());
  +      log.trace("Constructing");
      }
      
      // Public --------------------------------------------------------
  @@ -89,9 +90,7 @@
         //
         // TODO: Check if this gets called often, if so cache this
         //
  -      String classname = this.getClass().getName();
  -      return classname.substring(classname.lastIndexOf(".") + 1,
  -                                 classname.length());
  +      return org.jboss.util.Classes.stripPackageName(this.getClass());
      }
      
      public ObjectName getServiceName() {
  
  
  

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

Reply via email to