|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.metadata.AbstractBuilder (src)
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 (src) |
properties |
Constructor Summary | |
StandardMetaData(java.lang.Class mbeanClass)
Initializes the Standard metadata builder. |
|
StandardMetaData(java.lang.Object mbeanInstance)
Initializes the Standard metadata builder. |
|
StandardMetaData(java.lang.Object mbInstance,
java.lang.Class mbInterface)
Initializes the Standard metadata builder. |
Method Summary | |
MBeanInfo (src) |
build()
Constructs the Model MBean metadata. |
static java.lang.Class |
findStandardInterface(java.lang.Class mbeanClass)
Locates an interface for a class that matches the Standard MBean naming convention. |
java.lang.Class |
getMBeanInterface()
Retrieve the management interface |
protected java.lang.String |
getSignatureString(java.lang.reflect.Method method)
|
Methods inherited from class org.jboss.mx.metadata.AbstractBuilder (src) |
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(java.lang.Object mbeanInstance) throws NotCompliantMBeanException (src)
mbeanInstance
- MBean instancepublic StandardMetaData(java.lang.Class mbeanClass) throws NotCompliantMBeanException (src)
mbeanClass
- resource class that implements an interface
adhering to the Standard MBean naming conventionspublic StandardMetaData(java.lang.Object mbInstance, java.lang.Class mbInterface) throws NotCompliantMBeanException (src)
mbInstance
- MBean instancembInterface
- the management interfaceMethod Detail |
public static java.lang.Class findStandardInterface(java.lang.Class mbeanClass)
mbeanClass
- the class to investigate
public java.lang.Class getMBeanInterface()
public MBeanInfo (src) build() throws NotCompliantMBeanException (src)
MetaDataBuilder (src)
build
in interface MetaDataBuilder (src)
build
in class AbstractBuilder (src)
NotCompliantMBeanException (src)
protected java.lang.String getSignatureString(java.lang.reflect.Method method)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |