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.
Object invoke(RemoteOperation<?> operation, Object params) throws MBeanException, 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.