## org.apache.catalina.mbeans
Class MBeanUtils

    java.lang.Object
      org.apache.catalina.mbeans.MBeanUtils

public class MBeanUtils
extends java.lang.Object

Public utility methods in support of the server side MBeans implementation.

Version:
  $Revision: 1.24 $ $Date: 2004/02/27 14:58:45 $
Author:
  Craig R. McClanahan, Amy Roh

Constructor Summary
`MBeanUtils()`

Method Summary
`static javax.management.ObjectName` `createObjectName(java.lang.String domain, ContextEnvironment environment)` Create an `ObjectName` for this `Service` object.
`static javax.management.ObjectName` `createObjectName(java.lang.String domain, ContextResource resource)` Create an `ObjectName` for this `ContextResource` object.
`static javax.management.ObjectName` `createObjectName(java.lang.String domain, ContextResourceLink resourceLink)` Create an `ObjectName` for this `ContextResourceLink` object.
`static org.apache.commons.modeler.Registry` `createRegistry()` Create and configure (if necessary) and return the registry of managed object descriptions.
`static void` `createRMIAdaptor(java.lang.String adaptorType, java.lang.String host, int port)` Create a RMI adapter [MX4J specific].
`static javax.management.MBeanServer` `createServer()` Create and configure (if necessary) and return the `MBeanServer` with which we will be registering our `ModelMBean` implementations.
`static void` `loadMBeanDescriptors(java.lang.String resource)` Load an MBean descriptor resource.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MBeanUtils

    public MBeanUtils()

Method Detail

### createObjectName

    public static javax.management.ObjectName createObjectName(java.lang.String domain,
                                                               ContextEnvironment environment)
                                                        throws javax.management.MalformedObjectNameException

  Create an `ObjectName` for this `Service` object.

  Parameters:
    `domain` - Domain in which this name is to be created
  Throws:
    `javax.management.MalformedObjectNameException` - if a name cannot be created

### createObjectName

    public static javax.management.ObjectName createObjectName(java.lang.String domain,
                                                               ContextResource resource)
                                                        throws javax.management.MalformedObjectNameException

  Create an `ObjectName` for this `ContextResource` object.

  Parameters:
    `domain` - Domain in which this name is to be created
    `resource` - The ContextResource to be named
  Throws:
    `javax.management.MalformedObjectNameException` - if a name cannot be created

### createObjectName

    public static javax.management.ObjectName createObjectName(java.lang.String domain,
                                                               ContextResourceLink resourceLink)
                                                        throws javax.management.MalformedObjectNameException

  Create an `ObjectName` for this `ContextResourceLink` object.

  Parameters:
    `domain` - Domain in which this name is to be created
    `resourceLink` - The ContextResourceLink to be named
  Throws:
    `javax.management.MalformedObjectNameException` - if a name cannot be created

### createRegistry

    public static org.apache.commons.modeler.Registry createRegistry()

  Create and configure (if necessary) and return the registry of managed object descriptions.

### loadMBeanDescriptors

    public static void loadMBeanDescriptors(java.lang.String resource)

  Load an MBean descriptor resource.

### createServer

    public static javax.management.MBeanServer createServer()

  Create and configure (if necessary) and return the `MBeanServer` with which we will be registering our `ModelMBean` implementations.

### createRMIAdaptor

    public static void createRMIAdaptor(java.lang.String adaptorType,
                                        java.lang.String host,
                                        int port)
                                 throws java.lang.Exception

  Create a RMI adapter [MX4J specific].

  Throws:
    `java.lang.Exception`

Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.