java.lang.Object | |
↳ | org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler |
Known Direct Subclasses |
Known Indirect Subclasses |
Abstract implementation of the MBeanInfoAssembler
interface
that encapsulates the creation of a ModelMBeanInfo
instance
but delegates the creation of metadata to subclasses.
This class offers two flavors of Class extraction from a managed bean
instance: getTargetClass(Object)
, extracting the target class behind
any kind of AOP proxy, and getClassToExpose(Class>)
, returning the
class or interface that will be searched for annotations and exposed
to the JMX runtime.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an instance of the
ModelMBeanInfoSupport class supplied with all
JMX implementations and populates the metadata through calls to the subclass. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check the given bean instance, throwing an IllegalArgumentException
if it is not eligible for exposure with this assembler.
| |||||||||||
Get the attribute metadata for the MBean resource.
| |||||||||||
Get the class name of the MBean resource.
| |||||||||||
Return the class or interface to expose for the given bean.
| |||||||||||
Return the class or interface to expose for the given bean class.
| |||||||||||
Get the constructor metadata for the MBean resource.
| |||||||||||
Get the description of the MBean resource.
| |||||||||||
Get the notification metadata for the MBean resource.
| |||||||||||
Get the operation metadata for the MBean resource.
| |||||||||||
Return the actual bean class of the given bean instance.
| |||||||||||
Called after the
ModelMBeanInfo instance has been constructed but
before it is passed to the MBeanExporter . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.jmx.export.assembler.MBeanInfoAssembler
|
Create an instance of the ModelMBeanInfoSupport
class supplied with all
JMX implementations and populates the metadata through calls to the subclass.
managedBean | the bean that will be exposed (might be an AOP proxy) |
---|---|
beanKey | the key associated with the managed bean |
JMException | in case of errors |
---|
Check the given bean instance, throwing an IllegalArgumentException if it is not eligible for exposure with this assembler.
Default implementation is empty, accepting every bean instance.
managedBean | the bean that will be exposed (might be an AOP proxy) |
---|
IllegalArgumentException | the bean is not valid for exposure |
---|
Get the attribute metadata for the MBean resource. Subclasses should implement this method to return the appropriate metadata for all the attributes that should be exposed in the management interface for the managed resource.
managedBean | the bean instance (might be an AOP proxy) |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
JMException | in case of errors |
---|
Get the class name of the MBean resource.
Default implementation returns a simple description for the MBean based on the class name.
managedBean | the bean instance (might be an AOP proxy) |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
JMException | in case of errors |
---|
Return the class or interface to expose for the given bean. This is the class that will be searched for attributes and operations (for example, checked for annotations).
managedBean | the bean instance (might be an AOP proxy) |
---|
Return the class or interface to expose for the given bean class. This is the class that will be searched for attributes and operations
beanClass | the bean class (might be an AOP proxy class) |
---|
Get the constructor metadata for the MBean resource. Subclasses should implement this method to return the appropriate metadata for all constructors that should be exposed in the management interface for the managed resource.
Default implementation returns an empty array of ModelMBeanConstructorInfo
.
managedBean | the bean instance (might be an AOP proxy) |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
JMException | in case of errors |
---|
Get the description of the MBean resource.
Default implementation returns a simple description for the MBean based on the class name.
managedBean | the bean instance (might be an AOP proxy) |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
JMException | in case of errors |
---|
Get the notification metadata for the MBean resource. Subclasses should implement this method to return the appropriate metadata for all notifications that should be exposed in the management interface for the managed resource.
Default implementation returns an empty array of ModelMBeanNotificationInfo
.
managedBean | the bean instance (might be an AOP proxy) |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
JMException | in case of errors |
---|
Get the operation metadata for the MBean resource. Subclasses should implement this method to return the appropriate metadata for all operations that should be exposed in the management interface for the managed resource.
managedBean | the bean instance (might be an AOP proxy) |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
JMException | in case of errors |
---|
Return the actual bean class of the given bean instance. This is the class exposed to description-style JMX properties.
Default implementation returns the target class for an AOP proxy, and the plain bean class else.
managedBean | the bean instance (might be an AOP proxy) |
---|
Called after the ModelMBeanInfo
instance has been constructed but
before it is passed to the MBeanExporter
.
Subclasses can implement this method to add additional descriptors to the MBean metadata. Default implementation is empty.
descriptor | the Descriptor for the MBean resource. |
---|---|
managedBean | the bean instance (might be an AOP proxy) |
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
JMException | in case of errors |
---|