APIdia Launch Partner
Top Description Constructors Methods
com.sun.jmx.mbeanserver

public Class StandardMBeanSupport

extends MBeanSupport<Method>
Class Inheritance
Imports
java.lang.reflect.Method, javax.management.MBeanInfo, .MBeanServer, .NotCompliantMBeanException, .ObjectName

Base class for Standard MBeans.
Since
1.6

Constructor Summary

AccessConstructor and Description
public <
a type parameter that allows the compiler to check that resource implements mbeanInterfaceType, provided that mbeanInterfaceType is a class constant like SomeMBean.class.
T
>
StandardMBeanSupport(T
the underlying resource for the new MBean.
resource
,
Class<T>
the class or interface to be used to determine the MBean's management interface. An interface if this is a classic Standard MBean; a class if this is a @ManagedResource.
mbeanInterfaceType
)

Construct a Standard MBean that wraps the given resource using the given Standard MBean interface.

Method Summary

Modifier and TypeMethod and Description
pack-priv Object
getCookie()

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

Return a cookie for this MBean.

public MBeanInfo
getMBeanInfo()

Overrides com.sun.jmx.mbeanserver.MBeanSupport.getMBeanInfo.

Implements javax.management.DynamicMBean.getMBeanInfo.

Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.

pack-priv MBeanIntrospector<Method>
getMBeanIntrospector()

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

Return the appropriate introspector for this type of MBean.

public void
public void
Inherited from com.sun.jmx.mbeanserver.MBeanSupport:
getAttributegetAttributesgetClassNamegetMBeanInterfacegetResourceinvokeisMXBeanpostDeregisterpostRegisterpreDeregisterpreRegisterpreRegister2registerFailedsetAttributesetAttributes

Constructor Detail

StandardMBeanSupportback to summary
public <T> StandardMBeanSupport(T resource, Class<T> mbeanInterfaceType) throws NotCompliantMBeanException

Construct a Standard MBean that wraps the given resource using the given Standard MBean interface.

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

the underlying resource for the new MBean.

mbeanInterfaceType:Class<T>

the class or interface to be used to determine the MBean's management interface. An interface if this is a classic Standard MBean; a class if this is a @ManagedResource.

Exceptions
IllegalArgumentException:
if resource is null or if it does not implement the class mbeanInterfaceType or if that class is not a valid Standard MBean interface.

Method Detail

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
getMBeanInfoback to summary
public MBeanInfo getMBeanInfo()

Overrides com.sun.jmx.mbeanserver.MBeanSupport.getMBeanInfo.

Implements javax.management.DynamicMBean.getMBeanInfo.

Doc from javax.management.DynamicMBean.getMBeanInfo.

Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.

Annotations
@Override
getMBeanIntrospectorback to summary
pack-priv MBeanIntrospector<Method> 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 mbs, ObjectName name)

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

Annotations
@Override
unregisterback to summary
public void unregister()

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

Annotations
@Override