User: juhalindfors
Date: 02/01/28 15:36:32
Modified: src/main/org/jboss/mx/server MBeanServerImpl.java
ServerConstants.java
Log:
MLets added to default loader repository + property constants
Revision Changes Path
1.11 +10 -3 jmx/src/main/org/jboss/mx/server/MBeanServerImpl.java
Index: MBeanServerImpl.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/server/MBeanServerImpl.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- MBeanServerImpl.java 2002/01/26 16:12:33 1.10
+++ MBeanServerImpl.java 2002/01/28 23:36:32 1.11
@@ -38,6 +38,7 @@
import javax.management.loading.DefaultLoaderRepository;
import java.lang.reflect.Constructor;
+import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.InvocationTargetException;
@@ -48,6 +49,7 @@
import org.jboss.mx.server.registry.BasicMBeanRegistry;
import org.jboss.mx.server.registry.MBeanRegistry;
import org.jboss.mx.server.registry.MBeanEntry;
+import org.jboss.mx.loading.LoaderRepository;
/**
@@ -55,9 +57,10 @@
* @see javax.management.MBeanServer
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
- * @version $Revision: 1.10 $
+ * @version $Revision: 1.11 $
*/
-public class MBeanServerImpl implements MBeanServer, ServerConstants
+public class MBeanServerImpl
+ implements MBeanServer, ServerConstants
{
// Attributes ----------------------------------------------------
@@ -66,7 +69,8 @@
protected String defaultDomain = "DefaultDomain";
protected MBeanRegistry registry = null;
protected MBeanServerDelegate delegate = null;
-
+ protected LoaderRepository loaderRepository =
LoaderRepository.getDefaultLoaderRepository();
+
// Constructors --------------------------------------------------
public MBeanServerImpl(String defaultDomain)
{
@@ -345,6 +349,9 @@
registry.add(entry);
+ if (object instanceof ClassLoader)
+ loaderRepository.addClassLoader((ClassLoader)object);
+
delegate.sendNotification(
new MBeanServerNotification(
MBeanServerNotification.REGISTRATION_NOTIFICATION,
1.2 +21 -8 jmx/src/main/org/jboss/mx/server/ServerConstants.java
Index: ServerConstants.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/server/ServerConstants.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServerConstants.java 2002/01/23 22:09:48 1.1
+++ ServerConstants.java 2002/01/28 23:36:32 1.2
@@ -13,7 +13,7 @@
* @see org.jboss.mx.service.ServiceConstants
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*
*/
public interface ServerConstants
@@ -23,15 +23,28 @@
/**
* String representation of the MBean server delegate MBean object name.
*/
- final static String MBEAN_SERVER_DELEGATE =
"JMImplementation:type=MBeanServerDelegate";
+ final static String MBEAN_SERVER_DELEGATE =
"JMImplementation:type=MBeanServerDelegate";
+ final static String DEFAULT_DOMAIN = "DefaultDomain";
+
// Constants for server delegate
- final static String SPECIFICATION_NAME = "Java Management Extensions
Instrumentation and Agent Specification";
- final static String SPECIFICATION_VERSION = "1.0";
- final static String SPECIFICATION_VENDOR = "Sun Microsystems, Inc.";
- final static String IMPLEMENTATION_NAME = "JBossMX";
- final static String IMPLEMENTATION_VERSION = "0.5";
- final static String IMPLEMENTATION_VENDOR = "JBoss Organization";
+ final static String SPECIFICATION_NAME = "Java Management Extensions
Instrumentation and Agent Specification";
+ final static String SPECIFICATION_VERSION = "1.0";
+ final static String SPECIFICATION_VENDOR = "Sun Microsystems, Inc.";
+ final static String IMPLEMENTATION_NAME = "JBossMX";
+ final static String IMPLEMENTATION_VERSION = "0.8";
+ final static String IMPLEMENTATION_VENDOR = "JBoss Organization";
+
+ // system properties
+ final static String REQUIRED_MODELMBEAN_CLASS_PROPERTY =
"jbossmx.required.modelmbean.class";
+ final static String DEFAULT_REQUIRED_MODELMBEAN_CLASS =
"org.jboss.mx.modelmbean.XMBean";
+
+ final static String LOADER_REPOSITORY_CLASS_PROPERTY =
"jbossmx.loader.repository.class";
+ final static String DEFAULT_LOADER_REPOSITORY_CLASS =
"org.jboss.mx.loading.BasicLoaderRepository";
+
+ final static String MBEAN_SERVER_CLASS_PROPERTY =
"jbossmx.mbean.server.class";
+ final static String DEFAULT_MBEAN_SERVER_CLASS =
"org.jboss.mx.server.MBeanServerImpl";
+
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development