Class MetaData
java.lang.Object
org.eclipse.jetty.jmx.MetaData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, MetaData.AttributeInfo> private final Constructor<?> private final MBeanInfoprivate final Class<?> private final Map<String, MetaData.OperationInfo> private final MetaDataprivate static final Loggerprivate static final MBeanAttributeInfo[]private static final MBeanConstructorInfo[]private static final MBeanNotificationInfo[]private static final MBeanOperationInfo[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate MBeanInfobuildMBeanInfo(Class<?> klass) private voidcollectMBeanAttributeInfos(Map<String, MBeanAttributeInfo> attributeInfos) private voidcollectMBeanOperationInfos(Map<String, MBeanOperationInfo> operationInfos) private MetaData.AttributeInfofindAttribute(String name) private MetaData.OperationInfofindOperation(String signature) (package private) ObjectgetAttribute(String name, ObjectMBean mbean) (package private) MBeanInfo(package private) Objectinvoke(String name, String[] params, Object[] args, ObjectMBean mbean) private static booleanisManagedObject(Class<?> klass) (package private) ObjectnewInstance(Object bean) private static ObjectnewInstance(Constructor<?> constructor, Object bean) private voidparseMethods(Class<?>... classes) (package private) voidsetAttribute(Attribute attribute, ObjectMBean mbean) private static Stringprivate static String(package private) static StringtoAttributeName(String methodName) private static MBeanExceptiontoString()
-
Field Details
-
LOG
-
NO_ATTRIBUTES
-
NO_CONSTRUCTORS
-
NO_OPERATIONS
-
NO_NOTIFICATIONS
-
_attributes
-
_operations
-
_klass
-
_parent
-
_interfaces
-
_constructor
-
_info
-
-
Constructor Details
-
MetaData
MetaData(Class<?> klass, Constructor<?> constructor, MetaData parent, List<MetaData> interfaces)
-
-
Method Details
-
newInstance
-
getMBeanInfo
MBeanInfo getMBeanInfo() -
getAttribute
Object getAttribute(String name, ObjectMBean mbean) throws AttributeNotFoundException, ReflectionException, MBeanException -
setAttribute
void setAttribute(Attribute attribute, ObjectMBean mbean) throws AttributeNotFoundException, ReflectionException, MBeanException -
findAttribute
-
invoke
Object invoke(String name, String[] params, Object[] args, ObjectMBean mbean) throws ReflectionException, MBeanException - Throws:
ReflectionExceptionMBeanException
-
findOperation
-
newInstance
-
parseMethods
-
toAttributeName
-
isManagedObject
-
signature
-
signature
-
buildMBeanInfo
-
collectMBeanAttributeInfos
-
collectMBeanOperationInfos
-
toMBeanException
-
toString
-