| Modifier and Type | Class and Description |
|---|---|
| private class | MBeanIntrospector.
A visitor that constructs the per-interface MBeanInfo. |
| pack-priv static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract void | |
| pack-priv final boolean | |
| private static MBeanConstructorInfo[] | |
| pack-priv static MBeanNotificationInfo[] | |
| pack-priv abstract MBeanAnalyzer | |
| pack-priv abstract Descriptor | getBasicMBeanDescriptor()
Get a Descriptor containing fields that MBeans of this kind will always have. |
| pack-priv final MBeanInfo | getClassMBeanInfo(Class<?> resourceClass, PerInterface<M> perInterface)
Return the basic MBeanInfo for resources of the given class and per-interface data. |
| pack-priv abstract Type[] | getGenericParameterTypes(M m)
Get the parameter types of this method in the Java interface it came from. |
| pack-priv abstract Type | |
| pack-priv abstract MBeanAttributeInfo | getMBeanAttributeInfo(String attributeName, M getter, M setter)
Construct an MBeanAttributeInfo for the given attribute based on the given getter and setter. |
| pack-priv abstract Descriptor | getMBeanDescriptor(Class<?> resourceClass)
Get a Descriptor containing additional fields beyond the ones from getBasicMBeanDescriptor that MBeans whose concrete class is resourceClass will always have. |
| pack-priv final MBeanInfo | getMBeanInfo(Object resource, PerInterface<M> perInterface)
Return the MBeanInfo for the given resource, based on the given per-interface data. |
| pack-priv abstract MBeanIntrospector. | getMBeanInfoMap()
The map from concrete implementation class and interface to MBeanInfo for this type of MBean. |
| pack-priv abstract MBeanOperationInfo | getMBeanOperationInfo(String operationName, M operation)
Construct an MBeanOperationInfo for the given operation based on the M it was derived from. |
| pack-priv final List | |
| pack-priv abstract String | |
| pack-priv final PerInterface | |
| pack-priv abstract MBeanIntrospector. | |
| pack-priv abstract String[] | getSignature(M m)
Get the signature of this method as a caller would have to supply it in MBeanServer.invoke. |
| pack-priv final Object | |
| pack-priv abstract Object | |
| pack-priv final void | invokeSetter(String name, M setter, Object target, Object arg, Object cookie)
Invoke the given setter on the given target with the given argument and cookie. |
| pack-priv abstract boolean | |
| pack-priv static boolean | |
| private MBeanInfo | makeInterfaceMBeanInfo(Class<?> mbeanInterface, MBeanAnalyzer<M> analyzer)
Make the MBeanInfo skeleton for the given MBean interface using the given analyzer. |
| private void | |
| pack-priv abstract M | |
| private static void | |
| pack-priv abstract boolean | validParameter(M m, Object value, int paramNo, Object cookie)
Test whether the given value is valid for the given parameter of this M. |
| MBeanIntrospector | back to summary |
|---|---|
| pack-priv MBeanIntrospector() | |
| checkMethod | back to summary |
|---|---|
| pack-priv abstract void checkMethod(M m) Check that this method is valid. For example, a method in an MXBean interface is not valid if one of its parameters cannot be mapped to an Open Type. | |
| consistent | back to summary |
|---|---|
| pack-priv final boolean consistent(M getter, M setter) True if the given getter and setter are consistent. | |
| findConstructors | back to summary |
|---|---|
| private static MBeanConstructorInfo[] findConstructors(Class<?> c) | |
| findNotifications | back to summary |
|---|---|
| pack-priv static MBeanNotificationInfo[] findNotifications(Object moi) | |
| getAnalyzer | back to summary |
|---|---|
| pack-priv abstract MBeanAnalyzer Make an interface analyzer for this type of MBean. | |
| getBasicMBeanDescriptor | back to summary |
|---|---|
| pack-priv abstract Descriptor getBasicMBeanDescriptor() Get a Descriptor containing fields that MBeans of this kind will always have. For example, MXBeans will always have "mxbean=true". | |
| getClassMBeanInfo | back to summary |
|---|---|
| pack-priv final MBeanInfo getClassMBeanInfo(Class<?> resourceClass, PerInterface<M> perInterface) Return the basic MBeanInfo for resources of the given class and per-interface data. This MBeanInfo might not be the final MBeanInfo for instances of the class, because if the class is a NotificationBroadcaster then each instance gets to decide what MBeanNotificationInfo[] to put in its own MBeanInfo. | |
| getGenericParameterTypes | back to summary |
|---|---|
| pack-priv abstract Type[] getGenericParameterTypes(M m) Get the parameter types of this method in the Java interface it came from. | |
| getGenericReturnType | back to summary |
|---|---|
| pack-priv abstract Type getGenericReturnType(M m) Get the return type of this method. This is the return type of a method in a Java interface, so for MXBeans it is the declared Java type, not the mapped Open Type. | |
| getMBeanAttributeInfo | back to summary |
|---|---|
| pack-priv abstract MBeanAttributeInfo getMBeanAttributeInfo(String attributeName, M getter, M setter) Construct an MBeanAttributeInfo for the given attribute based on the given getter and setter. One but not both of the getter and setter may be null. | |
| getMBeanDescriptor | back to summary |
|---|---|
| pack-priv abstract Descriptor getMBeanDescriptor(Class<?> resourceClass) Get a Descriptor containing additional fields beyond the ones from getBasicMBeanDescriptor that MBeans whose concrete class is resourceClass will always have. | |
| getMBeanInfo | back to summary |
|---|---|
| pack-priv final MBeanInfo getMBeanInfo(Object resource, PerInterface<M> perInterface) Return the MBeanInfo for the given resource, based on the given per-interface data. | |
| getMBeanInfoMap | back to summary |
|---|---|
| pack-priv abstract MBeanIntrospector. The map from concrete implementation class and interface to MBeanInfo for this type of MBean. | |
| getMBeanOperationInfo | back to summary |
|---|---|
| pack-priv abstract MBeanOperationInfo getMBeanOperationInfo(String operationName, M operation) Construct an MBeanOperationInfo for the given operation based on the M it was derived from. | |
| getMethods | back to summary |
|---|---|
| pack-priv final List Get the methods to be analyzed to build the MBean interface. | |
| getName | back to summary |
|---|---|
| pack-priv abstract String getName(M m) Get the name of this method. | |
| getPerInterface | back to summary |
|---|---|
| pack-priv final PerInterface | |
| getPerInterfaceMap | back to summary |
|---|---|
| pack-priv abstract MBeanIntrospector. The map from interface to PerInterface for this type of MBean. | |
| getSignature | back to summary |
|---|---|
| pack-priv abstract String[] getSignature(M m) Get the signature of this method as a caller would have to supply it in MBeanServer.invoke. For MXBeans, the named types will be the mapped Open Types for the parameters. | |
| invokeM | back to summary |
|---|---|
| pack-priv final Object invokeM(M m, Object target, Object[] args, Object cookie) throws MBeanException, ReflectionException Invoke the given M on the given target with the given args and cookie. Wrap exceptions appropriately. | |
| invokeM2 | back to summary |
|---|---|
| pack-priv abstract Object invokeM2(M m, Object target, Object[] args, Object cookie) throws InvocationTargetException, IllegalAccessException, MBeanException Invoke the method with the given target and arguments.
| |
| invokeSetter | back to summary |
|---|---|
| pack-priv final void invokeSetter(String name, M setter, Object target, Object arg, Object cookie) throws MBeanException, ReflectionException, InvalidAttributeValueException Invoke the given setter on the given target with the given argument and cookie. Wrap exceptions appropriately. | |
| isMXBean | back to summary |
|---|---|
| pack-priv abstract boolean isMXBean() True if MBeans with this kind of introspector are MXBeans. | |
| isValidParameter | back to summary |
|---|---|
| pack-priv static boolean isValidParameter(Method m, Object value, int paramNo) | |
| makeInterfaceMBeanInfo | back to summary |
|---|---|
| private MBeanInfo makeInterfaceMBeanInfo(Class<?> mbeanInterface, MBeanAnalyzer<M> analyzer) Make the MBeanInfo skeleton for the given MBean interface using the given analyzer. This will never be the MBeanInfo of any real MBean (because the getClassName() must be a concrete class), but its MBeanAttributeInfo[] and MBeanOperationInfo[] can be inserted into such an MBeanInfo, and its Descriptor can be the basis for the MBeanInfo's Descriptor. | |
| maybeInvalidParameter | back to summary |
|---|---|
| private void maybeInvalidParameter(String name, M setter, Object arg, Object cookie) throws InvalidAttributeValueException | |
| mFrom | back to summary |
|---|---|
| pack-priv abstract M mFrom(Method m) Find the M corresponding to the given Method. | |
| unwrapInvocationTargetException | back to summary |
|---|---|
| private static void unwrapInvocationTargetException(InvocationTargetException e) throws MBeanException | |
| validParameter | back to summary |
|---|---|
| pack-priv abstract boolean validParameter(M m, Object value, int paramNo, Object cookie) Test whether the given value is valid for the given parameter of this M. | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv MBeanInfo | makeMBeanInfo(Class<?> mbeanInterface, String description)
Make an MBeanInfo based on the attributes and operations found in the interface. |
| public void | visitAttribute(String attributeName, M getter, M setter)
Implements com.
|
| public void | visitOperation(String operationName, M operation)
Implements com.
|
| attrs | back to summary |
|---|---|
| private final List<MBeanAttributeInfo> attrs | |
| ops | back to summary |
|---|---|
| private final List<MBeanOperationInfo> ops | |
| MBeanInfoMaker | back to summary |
|---|---|
| private MBeanInfoMaker() | |
| makeMBeanInfo | back to summary |
|---|---|
| pack-priv MBeanInfo makeMBeanInfo(Class<?> mbeanInterface, String description) Make an MBeanInfo based on the attributes and operations found in the interface. | |
| visitAttribute | back to summary |
|---|---|
| public void visitAttribute(String attributeName, M getter, M setter) Implements com. | |
| visitOperation | back to summary |
|---|---|
| public void visitOperation(String operationName, M operation) Implements com. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| MBeanInfoMap | back to summary |
|---|---|
| pack-priv MBeanInfoMap() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| PerInterfaceMap | back to summary |
|---|---|
| pack-priv PerInterfaceMap() | |