User: user57
Date: 02/02/12 20:22:30
Modified: src/main/org/jboss/logging Log4jServiceMBean.java
Log:
o renamed SafeObjectNameFactory -> ObjectNameFactory
o updated existing users of SafeObjectNameFactory to use new name
o converted a few more
Revision Changes Path
1.4 +43 -25 jboss/src/main/org/jboss/logging/Log4jServiceMBean.java
Index: Log4jServiceMBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/logging/Log4jServiceMBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Log4jServiceMBean.java 3 Aug 2001 17:15:53 -0000 1.3
+++ Log4jServiceMBean.java 13 Feb 2002 04:22:30 -0000 1.4
@@ -6,37 +6,55 @@
*/
package org.jboss.logging;
-/** Management interface for log4j
+import javax.management.ObjectName;
-@author <a href="mailto:[EMAIL PROTECTED]">Fulco Muriglio</a>
-@author <a href="mailto:[EMAIL PROTECTED]">Scott Stark</a>.
-@version $Revision: 1.3 $
-*/
+import org.jboss.util.ObjectNameFactory;
+
+/**
+ * Management interface for log4j
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Fulco Muriglio</a>
+ * @author <a href="mailto:[EMAIL PROTECTED]">Scott Stark</a>.
+ * @version $Revision: 1.4 $
+ */
public interface Log4jServiceMBean
{
- /** The default name of the service */
- public static final String OBJECT_NAME = ":service=Logging,type=Log4J";
+ /** The default JMX object name for this MBean. */
+ ObjectName OBJECT_NAME =
+ ObjectNameFactory.create("jboss.system:service=Logging,type=Log4J");
- /** Get the log4j.properties format config file path
- */
- public String getConfigurationPath();
- /** Set the log4j.properties format config file path
+ /**
+ * Get the log4j.properties format config file path
*/
- public void setConfigurationPath(String path);
- /** Get the refresh flag. This determines if the log4j.properties file
- is reloaded every refreshPeriod seconds or not.
- */
- public boolean getRefreshFlag();
- /** Set the refresh flag. This determines if the log4j.properties file
- is reloaded every refreshPeriod seconds or not.
+ String getConfigurationPath();
+
+ /**
+ * Set the log4j.properties format config file path
*/
- public void setRefreshFlag(boolean flag);
- /** Configures the log4j framework using the current service properties
- and sets the service category to the log4j root Category.
+ void setConfigurationPath(String path);
+
+ /**
+ * Get the refresh flag. This determines if the log4j.properties file
+ * is reloaded every refreshPeriod seconds or not.
+ */
+ boolean getRefreshFlag();
+
+ /**
+ * Set the refresh flag. This determines if the log4j.properties file
+ * is reloaded every refreshPeriod seconds or not.
*/
- public void start() throws Exception;
- /** Stops the log4j framework by calling the Category.shutdown() method.
- @see org.apache.log4j.Category#shutdown()
+ void setRefreshFlag(boolean flag);
+
+ /**
+ * Configures the log4j framework using the current service properties
+ * and sets the service category to the log4j root Category.
+ */
+ void start() throws Exception;
+
+ /**
+ * Stops the log4j framework by calling the Category.shutdown() method.
+ *
+ * @see org.apache.log4j.Category#shutdown
*/
- public void stop();
+ void stop();
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development