Top Description Fields Constructors Methods
com.sun.jmx.mbeanserver

public Class MXBeanSupport

extends MBeanSupport<ConvertingMethod>
Class Inheritance
Static Imports
com.sun.jmx.mbeanserver.Util.*

Base class for MXBeans.
Since
1.6

Field Summary

Modifier and TypeField and Description
private final Object
private MXBeanLookup
private ObjectName

Constructor Summary

AccessConstructor and Description
public <
a type parameter that allows the compiler to check that resource implements mxbeanInterface, provided that mxbeanInterface is a class constant like SomeMXBean.class.
T
>
MXBeanSupport(T
the underlying resource for the new MXBean.
resource
,
Class<T>
the interface to be used to determine the MXBean's management interface.
mxbeanInterface
)

Construct an MXBean that wraps the given resource using the given MXBean interface.

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T> Class<? super T>
findMXBeanInterface(Class<T> resourceClass)

pack-priv Object
getCookie()

Implements abstract com.sun.jmx.mbeanserver.MBeanSupport.getCookie.

Return a cookie for this MBean.
pack-priv MBeanIntrospector<ConvertingMethod>
getMBeanIntrospector()

Implements abstract com.sun.jmx.mbeanserver.MBeanSupport.getMBeanIntrospector.

Return the appropriate introspector for this type of MBean.
public void
private static Set<Class<?>>
private static void
public void
Inherited from com.sun.jmx.mbeanserver.MBeanSupport:
getAttributegetAttributesgetClassNamegetMBeanInfogetMBeanInterfacegetResourceinvokeisMXBeanpostDeregisterpostRegisterpreDeregisterpreRegisterpreRegister2registerFailedsetAttributesetAttributes

Field Detail

lockback to summary
private final Object lock
mxbeanLookupback to summary
private MXBeanLookup mxbeanLookup
objectNameback to summary
private ObjectName objectName

Constructor Detail

MXBeanSupportback to summary
public <T> MXBeanSupport(T resource, Class<T> mxbeanInterface) throws NotCompliantMBeanException

Construct an MXBean that wraps the given resource using the given MXBean interface.

Parameters
<T>
a type parameter that allows the compiler to check that resource implements mxbeanInterface, provided that mxbeanInterface is a class constant like SomeMXBean.class.
resource:T

the underlying resource for the new MXBean.

mxbeanInterface:Class<T>

the interface to be used to determine the MXBean's management interface.

Exceptions
IllegalArgumentException:
if resource is null or if it does not implement the class mxbeanInterface or if that class is not a valid MXBean interface.

Method Detail

findMXBeanInterfaceback to summary
pack-priv static <T> Class<? super T> findMXBeanInterface(Class<T> resourceClass)
getCookieback to summary
pack-priv Object getCookie()

Implements abstract com.sun.jmx.mbeanserver.MBeanSupport.getCookie.

Doc from com.sun.jmx.mbeanserver.MBeanSupport.getCookie.

Return a cookie for this MBean. This cookie will be passed to MBean method invocations where it can supply additional information to the invocation. For example, with MXBeans it can be used to supply the MXBeanLookup context for resolving inter-MXBean references.

Annotations
@Override
getMBeanIntrospectorback to summary
pack-priv MBeanIntrospector<ConvertingMethod> getMBeanIntrospector()

Implements abstract com.sun.jmx.mbeanserver.MBeanSupport.getMBeanIntrospector.

Doc from com.sun.jmx.mbeanserver.MBeanSupport.getMBeanIntrospector.

Return the appropriate introspector for this type of MBean.

Annotations
@Override
registerback to summary
public void register(MBeanServer server, ObjectName name) throws InstanceAlreadyExistsException

Implements abstract com.sun.jmx.mbeanserver.MBeanSupport.register.

Annotations
@Override
transitiveInterfacesback to summary
private static Set<Class<?>> transitiveInterfaces(Class<?> c)
transitiveInterfacesback to summary
private static void transitiveInterfaces(Class<?> c, Set<Class<?>> intfs)
unregisterback to summary
public void unregister()

Implements abstract com.sun.jmx.mbeanserver.MBeanSupport.unregister.

Annotations
@Override