Interface used to handle the invocation of a method.
The Method class is used to register rpc methods. There
are two ways rpc methods can be defined(bound); with this interface
or with reflection. This choice is reflected by the two different
constructors in the Method class.