User: user57  
  Date: 02/04/03 18:53:14

  Modified:    src/main/org/jboss/logging Log4jService.java
  Removed:     src/main/org/jboss/logging Log4jServiceMBean.java
  Log:
   o Using XDoclet to generate *MBean interfaces
  
  Revision  Changes    Path
  1.5       +21 -3     jboss-system/src/main/org/jboss/logging/Log4jService.java
  
  Index: Log4jService.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-system/src/main/org/jboss/logging/Log4jService.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Log4jService.java 5 Mar 2002 03:45:46 -0000       1.4
  +++ Log4jService.java 4 Apr 2002 02:53:14 -0000       1.5
  @@ -43,7 +43,9 @@
    * <p>Installs CategoryStream adapters for System.out and System.err
    *    to catch and redirect calls to Log4j.
    *
  - * @version <tt>$Revision: 1.4 $</tt>
  + * @jmx:mbean name="jboss.system:type=Log4jService,service=Logging"
  + *
  + * @version <tt>$Revision: 1.5 $</tt>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Fulco Muriglio</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
  @@ -125,13 +127,20 @@
         this.refreshPeriod = refreshPeriod;
      }
   
  +   /**
  +    * Get the refresh period.
  +    *
  +    * @jmx:managed-operation
  +    */
      public int getRefreshPeriod()
      {
         return refreshPeriod;
      }
      
      /**
  -    * Get the log4j.properties format config file path
  +    * Get the path to the Log4j configuration file.
  +    *
  +    * @jmx:managed-operation
       */
      public String getConfigurationPath()
      {
  @@ -139,7 +148,9 @@
      }
      
      /**
  -    * Set the log4j.properties format config file path
  +    * Set the path to the Log4j configuration file.
  +    *
  +    * @jmx:managed-operation
       */
      public void setConfigurationPath(String path)
      {
  @@ -152,6 +163,8 @@
       * throws a FileNotFoundException exception if the current
       * configurationPath cannot be located to avoid interaction problems
       * between the log4j framework and the JBoss ConsoleLogging service.
  +    *
  +    * @jmx:managed-operation
       */
      public void start() throws Exception
      {
  @@ -225,6 +238,8 @@
       * Stops the log4j framework by calling the Category.shutdown() method.
       * 
       * @see org.apache.log4j.Category#shutdown()
  +    *
  +    * @jmx:managed-operation
       */
      public void stop()
      {
  @@ -258,14 +273,17 @@
      
      public void postRegister(Boolean b)
      {
  +      // empty
      }
      
      public void preDeregister()
      {
  +      // empty
      }
      
      public void postDeregister()
      {
  +      // empty
      }
      
      // --- End MBeanRegistration interface methods
  
  
  

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

Reply via email to