GigaSpaces - Open Spaces

org.openspaces.remoting
Interface ServiceExecutionAspect


public interface ServiceExecutionAspect

A service execution callback allows to wrap the execution of "server side" service. If actual execution of the service is needed, the invoke method will need to be called on the passed Method using the service as the actual service to invoke it on, and SpaceRemotingInvocation.getArguments() as the method arguemnts.

As an example: method.invoke(service, invocation.getArguments()).

Author:
kimchy

Method Summary
 Object invoke(SpaceRemotingInvocation invocation, com.gigaspaces.reflect.IMethod method, Object service)
          A service execution callback allows to wrap the execution of "server side" service.
 

Method Detail

invoke

Object invoke(SpaceRemotingInvocation invocation,
              com.gigaspaces.reflect.IMethod method,
              Object service)
              throws InvocationTargetException,
                     IllegalAccessException
A service execution callback allows to wrap the execution of "server side" service. If actual execution of the service is needed, the invoke method will need to be called on the passed Method using the service as the actual service to invoke it on, and SpaceRemotingInvocation.getArguments() as the method arguemnts.

As an example: method.invoke(service, invocation.getArguments()).

Throws:
InvocationTargetException
IllegalAccessException

GigaSpaces - Open Spaces

Copyright © GigaSpaces.