org.apache.catalina.mbeans

Class MBeanUtils

public class MBeanUtils extends Object

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

Version: $Revision: 777611 $ $Date: 2009-05-22 18:41:15 +0200 (Fri, 22 May 2009) $

Author: Craig R. McClanahan Amy Roh

Method Summary
static ObjectNamecreateObjectName(String domain, ContextEnvironment environment)
Create an ObjectName for this Service object.
static ObjectNamecreateObjectName(String domain, ContextResource resource)
Create an ObjectName for this ContextResource object.
static ObjectNamecreateObjectName(String domain, ContextResourceLink resourceLink)
Create an ObjectName for this ContextResourceLink object.
static RegistrycreateRegistry()
Create and configure (if necessary) and return the registry of managed object descriptions.
static MBeanServercreateServer()
Create and configure (if necessary) and return the MBeanServer with which we will be registering our DynamicMBean implementations.

Method Detail

createObjectName

public static ObjectName createObjectName(String domain, ContextEnvironment environment)
Create an ObjectName for this Service object.

Parameters: domain Domain in which this name is to be created environment The ContextEnvironment to be named

Throws: MalformedObjectNameException if a name cannot be created

createObjectName

public static ObjectName createObjectName(String domain, ContextResource resource)
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: MalformedObjectNameException if a name cannot be created

createObjectName

public static ObjectName createObjectName(String domain, ContextResourceLink resourceLink)
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: MalformedObjectNameException if a name cannot be created

createRegistry

public static Registry createRegistry()
Create and configure (if necessary) and return the registry of managed object descriptions.

createServer

public static MBeanServer createServer()
Create and configure (if necessary) and return the MBeanServer with which we will be registering our DynamicMBean implementations.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.