| |
|
| java.lang.Object org.springframework.jmx.support.JmxUtils
JmxUtils | abstract public class JmxUtils (Code) | | Collection of generic utility methods to support Spring JMX.
Includes a convenient method to locate an MBeanServer.
author: Rob Harrop author: Juergen Hoeller since: 1.2 See Also: JmxUtils.locateMBeanServer |
IDENTITY_OBJECT_NAME_KEY | final public static String IDENTITY_OBJECT_NAME_KEY(Code) | | The key used when extending an existing
ObjectName with the
identity hash code of its corresponding managed resource.
|
getAttributeName | public static String getAttributeName(PropertyDescriptor property, boolean useStrictCasing)(Code) | | Return the JMX attribute name to use for the given JavaBeans property.
When using strict casing, a JavaBean property with a getter method
such as getFoo() translates to an attribute called
Foo . With strict casing disabled, getFoo()
would translate to just foo .
Parameters: property - the JavaBeans property descriptor Parameters: useStrictCasing - whether to use strict casing the JMX attribute name to use |
getClassToExpose | public static Class getClassToExpose(Object managedBean)(Code) | | Return the class or interface to expose for the given bean.
This is the class that will be searched for attributes and operations
(for example, checked for annotations).
This implementation returns the superclass for a CGLIB proxy and
the class of the given bean else (for a JDK proxy or a plain bean class).
Parameters: managedBean - the bean instance (might be an AOP proxy) the bean class to expose See Also: org.springframework.util.ClassUtils.getUserClass(Object) |
getClassToExpose | public static Class getClassToExpose(Class beanClass)(Code) | | Return the class or interface to expose for the given bean class.
This is the class that will be searched for attributes and operations
(for example, checked for annotations).
This implementation returns the superclass for a CGLIB proxy and
the class of the given bean else (for a JDK proxy or a plain bean class).
Parameters: beanClass - the bean class (might be an AOP proxy class) the bean class to expose See Also: org.springframework.util.ClassUtils.getUserClass(Class) |
getMethodSignature | public static String[] getMethodSignature(Method method)(Code) | | Create a String[] representing the argument signature of a
method. Each element in the array is the fully qualified class name
of the corresponding argument in the methods signature.
Parameters: method - the method to build an argument signature for the signature as array of argument types |
parameterInfoToTypes | public static Class[] parameterInfoToTypes(MBeanParameterInfo[] paramInfo) throws ClassNotFoundException(Code) | | Convert an array of MBeanParameterInfo into an array of
Class instances corresponding to the parameters.
Parameters: paramInfo - the JMX parameter info the parameter types as classes throws: ClassNotFoundException - if a parameter type could not be resolved |
|
|
|