public interface ServerInterfaceHandler
Implementations handle invocations on the methods of an interface and provide notifications for the MBean to propagate onwards.
Finally the handler must clear up any resources it might have created in the execution of it duties, such as removing listeners. This is done in the destroy() method.
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.
|
java.lang.Object invoke(RemoteOperation<?> operation, java.lang.Object[] params) throws javax.management.MBeanException, javax.management.ReflectionException
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.
operation
- The action (method) name.params
- The parameter object array.javax.management.MBeanException
javax.management.ReflectionException
void destroy()