public class ServerAllOperationsHandler<T> extends java.lang.Object implements ServerInterfaceHandler
Constructor and Description |
---|
ServerAllOperationsHandler(java.lang.Class<T> cl,
T target)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Clear up any resource this handler might have created.
|
java.lang.Object |
invoke(RemoteOperation<?> operation,
java.lang.Object[] params)
Invoke an operation.
|
public java.lang.Object invoke(RemoteOperation<?> operation, java.lang.Object[] params) throws javax.management.MBeanException, javax.management.ReflectionException
ServerInterfaceHandler
Note 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 ServerInterfaceHandler
operation
- The action (method) name.params
- The parameter object array.javax.management.MBeanException
javax.management.ReflectionException
public void destroy()
ServerInterfaceHandler
destroy
in interface ServerInterfaceHandler