User: oberg
Date: 00/11/07 04:30:14
Modified: src/main/org/jboss/util ServiceMBeanSupport.java
Log:
Log is now created on init() to allow service names to be set late
Revision Changes Path
1.6 +9 -4 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.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ServiceMBeanSupport.java 2000/09/08 20:20:39 1.5
+++ ServiceMBeanSupport.java 2000/11/07 12:30:14 1.6
@@ -20,7 +20,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public abstract class ServiceMBeanSupport
extends NotificationBroadcasterSupport
@@ -37,7 +37,7 @@
private int id = 0;
- protected Log log = new Log(getName());
+ protected Log log;
// Static --------------------------------------------------------
@@ -57,6 +57,8 @@
public void init()
throws Exception
{
+ log = new Log(getName());
+
log.log("Initializing");
log.setLog(log);
try
@@ -178,8 +180,11 @@
}
// Protected -----------------------------------------------------
- protected abstract ObjectName getObjectName(MBeanServer server, ObjectName name)
- throws javax.management.MalformedObjectNameException;
+ protected ObjectName getObjectName(MBeanServer server, ObjectName name)
+ throws javax.management.MalformedObjectNameException
+ {
+ return name;
+ }
protected void initService()
throws Exception