public class MBeanUtil extends Object
Constructor and Description |
---|
MBeanUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getAttributeName(Method method)
Returns the name of the attribute represented by the specified attribute method.
|
static String |
getAttributeName(String methodName)
Returns the name of the attribute represented by the specified attribute method.
|
static boolean |
isAttribute(Method method)
Returns true if the specified method represents an MBean attribute getter or setter.
|
static boolean |
isGetter(Method method)
Returns true if the specified method represents an MBean attribute getter.
|
static boolean |
isGetterName(String methodName,
String[] arguments)
Returns true if the specified methodName and arguments could potentially be a getter operation.
|
static boolean |
isSetter(Method method)
Returns true if the specified method represents an MBean attribute setter.
|
static boolean |
isSetterName(String methodName,
String[] arguments) |
static boolean |
requiresWriteAccess(ClassLoader classLoader,
Class containingClass,
Method method)
Returns true if the specified method (from the specified containing class) requires write permission to use.
|
public static String getAttributeName(Method method)
public static String getAttributeName(String methodName)
public static boolean isAttribute(Method method)
public static boolean isGetter(Method method)
public static boolean isGetterName(String methodName, String[] arguments)
public static boolean isSetter(Method method)
public static boolean requiresWriteAccess(ClassLoader classLoader, Class containingClass, Method method) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException