|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.jmx.server.ServerAllOperationsHandler<T>
public class ServerAllOperationsHandler<T>
Handle invoking operation on a target object. Essentially provides a translation from JMX style argument to Method.
| Constructor Summary | |
|---|---|
ServerAllOperationsHandler(Class<T> cl,
T target)
Constructor. |
|
| Method Summary | |
|---|---|
void |
destroy()
Clear up any resource this handler might have created. |
Object |
invoke(RemoteOperation<?> operation,
Object[] params)
Invoke an operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerAllOperationsHandler(Class<T> cl,
T target)
target - The object operations will be invoked on.| Method Detail |
|---|
public Object invoke(RemoteOperation<?> operation,
Object[] params)
throws MBeanException,
ReflectionException
ServerInterfaceHandlerNote that this method is not parameterised on return type. This is because it is called from JMX which has no interest in the return type. Adding a return type would also require that return values from the methods were cast to the parameter which would be a lot of code for no advantage.
invoke in interface ServerInterfaceHandlerparams - The parameter object array.
MBeanException
ReflectionExceptionpublic void destroy()
ServerInterfaceHandler
destroy in interface ServerInterfaceHandler
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||