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