Class MBeanInfoSupport
- java.lang.Object
-
- org.glassfish.admin.amx.impl.util.MBeanInfoSupport
-
public final class MBeanInfoSupport extends Object
- Author:
- llc
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MBeanAttributeInfo
attributeInfo(Method m)
Return MBeanAttributeInfo for the method.static void
findInterfaceMethods(Class<?> intf, Map<String,Method> getters, Map<String,Method> setters, Map<String,Method> getterSetters, Set<Method> operations)
static List<MBeanAttributeInfo>
generateMBeanAttributeInfos(Collection<Method> getterSetters, Collection<Method> getters, Collection<Method> setters)
static MBeanOperationInfo[]
generateMBeanOperationInfos(Collection<Method> methods)
static MBeanInfo
getAMX_SPIMBeanInfo()
static <T extends Annotation>
TgetAnnotation(Annotation[] annotations, Class<T> clazz)
static <T extends AMX_SPI>
MBeanInfogetMBeanInfo(Class<T> intf)
static DescriptorSupport
mbeanDescriptor(boolean immutable, Class<?> intf, boolean singleton, boolean globalSingleton, String group, boolean supportsAdoption, String[] subTypes)
static MBeanParameterInfo[]
parameterInfos(Method method)
static Class<?>
translatedType(Class<?> clazz)
-
-
-
Method Detail
-
getAMX_SPIMBeanInfo
public static MBeanInfo getAMX_SPIMBeanInfo()
-
findInterfaceMethods
public static void findInterfaceMethods(Class<?> intf, Map<String,Method> getters, Map<String,Method> setters, Map<String,Method> getterSetters, Set<Method> operations)
-
attributeInfo
public static MBeanAttributeInfo attributeInfo(Method m)
Return MBeanAttributeInfo for the method. If it's a getter, it's marked as read-only, if it's a setter, it's marked as read/write.- Parameters:
m
-- Returns:
-
generateMBeanAttributeInfos
public static List<MBeanAttributeInfo> generateMBeanAttributeInfos(Collection<Method> getterSetters, Collection<Method> getters, Collection<Method> setters)
-
getAnnotation
public static <T extends Annotation> T getAnnotation(Annotation[] annotations, Class<T> clazz)
-
parameterInfos
public static MBeanParameterInfo[] parameterInfos(Method method)
-
generateMBeanOperationInfos
public static MBeanOperationInfo[] generateMBeanOperationInfos(Collection<Method> methods)
-
mbeanDescriptor
public static DescriptorSupport mbeanDescriptor(boolean immutable, Class<?> intf, boolean singleton, boolean globalSingleton, String group, boolean supportsAdoption, String[] subTypes)
-
-