Interface CommandGatewayFactory.InvocationHandler<R>

Type Parameters:
R - The return type of the method invocation.
Enclosing class:
CommandGatewayFactory

public static interface CommandGatewayFactory.InvocationHandler<R>
Interface towards the mechanism that handles a method call on a gateway interface method.
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(Object proxy, Method invokedMethod, Object[] args)
    Handle the invocation of the given invokedMethod, invoked on given proxy with given args.
  • Method Details

    • invoke

      R invoke(Object proxy, Method invokedMethod, Object[] args) throws Exception
      Handle the invocation of the given invokedMethod, invoked on given proxy with given args.
      Parameters:
      proxy - The proxy on which the method was invoked.
      invokedMethod - The method being invoked.
      args - The arguments of the invocation.
      Returns:
      The return value of the invocation.
      Throws:
      Exception - Any exceptions that occurred while processing the invocation.