|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ejtools.jmx.MBeanServerProxy
A proxy for object that provides MBeanServer fonctionnality
Field Summary | |
protected java.lang.Class |
clazz
The class to search the method on |
protected java.lang.Object |
object
The real object |
Constructor Summary | |
MBeanServerProxy(java.lang.Object object,
java.lang.Class clazz)
Constructor for MBeanServerProxy. |
Method Summary | |
static javax.management.MBeanServer |
createMBeanProxy(java.lang.Object object)
Factory method to create a proxy |
static javax.management.MBeanServer |
createMBeanProxy(java.lang.Object object,
java.lang.Class clazz)
Factory method to create a proxy |
java.lang.Object |
invoke(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invocation method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Class clazz
protected java.lang.Object object
Constructor Detail |
public MBeanServerProxy(java.lang.Object object, java.lang.Class clazz)
object
- Real object to proxyclazz
- Class of the proxied objectMethod Detail |
public java.lang.Object invoke(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
method
- Method calledargs
- Method argumentsobj
- The method on which the invocation was made
java.lang.Throwable
- In case of Exceptionpublic static javax.management.MBeanServer createMBeanProxy(java.lang.Object object)
object
- Real object to proxy
public static javax.management.MBeanServer createMBeanProxy(java.lang.Object object, java.lang.Class clazz)
object
- Real object to proxyclazz
- Class of the proxied object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |