|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.metadata.AbstractBuilder org.jboss.mx.metadata.StandardMetaData
This metadata builder implementation builds a MBean info based on the naming rules of the Standard MBeans. The MBean server uses this builder to generate the metadata for Standard MBeans.
In cooperation with the
MBeanInfoConversion
class you
can use this builder as a migration tool from Standard to Model MBeans, or
for cases where you want the management interface be based on a compile-time
type safe interface. It is also possible to subclass this builder
implementation to extend it to support more sophisticated introspection rules
such as adding descriptors to management interface elements.
Field Summary |
Fields inherited from class org.jboss.mx.metadata.AbstractBuilder |
properties |
Constructor Summary | |
StandardMetaData(Class mbeanClass)
Initializes the Standard metadata builder. |
|
StandardMetaData(Object mbeanInstance)
Initializes the Standard metadata builder. |
|
StandardMetaData(Object mbInstance,
Class mbInterface)
Initializes the Standard metadata builder. |
Method Summary | |
MBeanInfo |
build()
Constructs the Model MBean metadata. |
static Class |
findStandardInterface(Class mbeanClass)
Locates an interface for a class that matches the Standard MBean naming convention. |
Class |
getMBeanInterface()
Retrieve the management interface |
protected String |
getSignatureString(Method method)
|
Methods inherited from class org.jboss.mx.metadata.AbstractBuilder |
getBooleanProperty, getProperties, getProperty, getStringProperty, setProperties, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StandardMetaData(Object mbeanInstance) throws NotCompliantMBeanException
mbeanInstance
- MBean instancepublic StandardMetaData(Class mbeanClass) throws NotCompliantMBeanException
mbeanClass
- resource class that implements an interface
adhering to the Standard MBean naming conventionspublic StandardMetaData(Object mbInstance, Class mbInterface) throws NotCompliantMBeanException
mbInstance
- MBean instancembInterface
- the management interfaceMethod Detail |
public static Class findStandardInterface(Class mbeanClass)
mbeanClass
- the class to investigate
public Class getMBeanInterface()
public MBeanInfo build() throws NotCompliantMBeanException
MetaDataBuilder
build
in interface MetaDataBuilder
build
in class AbstractBuilder
NotCompliantMBeanException
protected String getSignatureString(Method method)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |