|
JBossMX Parent POM 6.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.metadata.AbstractBuilder
org.jboss.mx.metadata.StandardMetaData
public class 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. |
MBeanInfo |
buildFromAnnotations()
|
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 MBeanParameterInfo[] |
getSignature(Class<?>[] parameterTypes,
Annotation[][] annotations)
|
protected MBeanParameterInfo[] |
getSignature(Constructor<?> constructor)
|
protected MBeanParameterInfo[] |
getSignature(Method method)
|
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 instance
NotCompliantMBeanException
- for any errorpublic StandardMetaData(Class<?> mbeanClass) throws NotCompliantMBeanException
mbeanClass
- resource class that implements an interface
adhering to the Standard MBean naming conventions
NotCompliantMBeanException
- for any errorpublic StandardMetaData(Object mbInstance, Class<?> mbInterface) throws NotCompliantMBeanException
mbInstance
- MBean instancembInterface
- the management interface
NotCompliantMBeanException
- for any errorMethod 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
- if there were errors building the
MBean info from the given data sourcepublic MBeanInfo buildFromAnnotations() throws NotCompliantMBeanException
NotCompliantMBeanException
protected MBeanParameterInfo[] getSignature(Constructor<?> constructor)
protected MBeanParameterInfo[] getSignature(Method method)
protected MBeanParameterInfo[] getSignature(Class<?>[] parameterTypes, Annotation[][] annotations)
protected String getSignatureString(Method method)
|
JBossMX Parent POM 6.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |