User: andreas
Date: 00/12/07 10:16:15
Modified: src/main/org/jboss/util ClassPathExtension.java
Executor.java Info.java ServiceControl.java
ServiceMBeanSupport.java Shutdown.java
SystemProperties.java
Log:
Changes to ServiceMBean therefore that if the Default-
Log class is not available then it does not logging.
Thus I could extract the JMX Connector (server-side)
from jBoss therefore that it can be used elsewhere.
Both (server- and client-side) connector archives are then
put in the new directory external which should keep all
archives developed under jBoss but available to other
groups.
Revision Changes Path
1.9 +3 -2 jboss/src/main/org/jboss/util/ClassPathExtension.java
Index: ClassPathExtension.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/util/ClassPathExtension.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ClassPathExtension.java 2000/12/07 15:45:19 1.8
+++ ClassPathExtension.java 2000/12/07 18:16:13 1.9
@@ -20,7 +20,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*/
public class ClassPathExtension
implements ClassPathExtensionMBean, MBeanRegistration
@@ -32,7 +32,7 @@
String url;
String name;
- Log log = new Log("Classpath extension");
+ Log log = Log.createLog("Classpath extension");
// Static --------------------------------------------------------
@@ -166,3 +166,4 @@
}
}
+
1.3 +4 -2 jboss/src/main/org/jboss/util/Executor.java
Index: Executor.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/util/Executor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Executor.java 2000/12/07 15:45:20 1.2
+++ Executor.java 2000/12/07 18:16:13 1.3
@@ -13,13 +13,14 @@
import javax.management.loading.MLet;
import org.jboss.logging.Log;
+import org.jboss.logging.DefaultLog;
/**
* <description>
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class Executor
implements ExecutorMBean, MBeanRegistration
@@ -30,7 +31,7 @@
// Attributes ----------------------------------------------------
String exec;
- Log log = new Log("Executor");
+ Log log = Log.createLog("Executor");
// Static --------------------------------------------------------
@@ -73,4 +74,5 @@
}
// Protected -----------------------------------------------------
}
+
1.4 +3 -2 jboss/src/main/org/jboss/util/Info.java
Index: Info.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/util/Info.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Info.java 2000/12/07 15:45:20 1.3
+++ Info.java 2000/12/07 18:16:13 1.4
@@ -19,7 +19,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class Info
implements InfoMBean, MBeanRegistration
@@ -29,7 +29,7 @@
// Attributes ----------------------------------------------------
- Log log = new Log("Info");
+ Log log = Log.createLog("Info");
// Static --------------------------------------------------------
@@ -61,4 +61,5 @@
}
// Protected -----------------------------------------------------
}
+
1.3 +3 -2 jboss/src/main/org/jboss/util/ServiceControl.java
Index: ServiceControl.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/util/ServiceControl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ServiceControl.java 2000/12/07 16:19:30 1.2
+++ ServiceControl.java 2000/12/07 18:16:13 1.3
@@ -19,7 +19,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class ServiceControl
implements ServiceControlMBean, MBeanRegistration, NotificationListener
@@ -28,7 +28,7 @@
public static final String OBJECT_NAME = ":service=ServiceControl";
// Attributes ----------------------------------------------------
- Log log = new Log("Service Control");
+ Log log = Log.createLog("Service Control");
List mbeans = new ArrayList();
MBeanServer server;
@@ -176,4 +176,5 @@
}
}
}
+
1.9 +3 -2 jboss/src/main/org/jboss/util/ServiceMBeanSupport.java
Index: ServiceMBeanSupport.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/util/ServiceMBeanSupport.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ServiceMBeanSupport.java 2000/12/07 15:45:21 1.8
+++ ServiceMBeanSupport.java 2000/12/07 18:16:14 1.9
@@ -20,7 +20,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*/
public abstract class ServiceMBeanSupport
extends NotificationBroadcasterSupport
@@ -57,8 +57,9 @@
public void init()
throws Exception
{
- log = new Log(getName());
+ log = Log.createLog( getName() );
+
log.log("Initializing");
log.setLog(log);
try
1.2 +3 -2 jboss/src/main/org/jboss/util/Shutdown.java
Index: Shutdown.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/util/Shutdown.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Shutdown.java 2000/12/07 15:48:14 1.1
+++ Shutdown.java 2000/12/07 18:16:14 1.2
@@ -19,7 +19,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class Shutdown
implements MBeanRegistration, ShutdownMBean
@@ -28,7 +28,7 @@
public static final String OBJECT_NAME = ":type=Shutdown";
// Attributes ----------------------------------------------------
- Log log = new Log("Shutdown");
+ Log log = Log.createLog("Shutdown");
List mbeans = new ArrayList();
MBeanServer server;
@@ -100,4 +100,5 @@
}
}
}
+
1.3 +3 -2 jboss/src/main/org/jboss/util/SystemProperties.java
Index: SystemProperties.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/util/SystemProperties.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SystemProperties.java 2000/12/07 15:45:21 1.2
+++ SystemProperties.java 2000/12/07 18:16:14 1.3
@@ -19,7 +19,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class SystemProperties
implements SystemPropertiesMBean, MBeanRegistration
@@ -29,7 +29,7 @@
// Attributes ----------------------------------------------------
- Log log = new Log("System properties");
+ Log log = Log.createLog("System properties");
// Static --------------------------------------------------------
@@ -69,3 +69,4 @@
}
// Protected -----------------------------------------------------
}
+