GigaSpaces XAP 7.0 API

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 arguments.

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

Author:
kimchy

Nested Class Summary
static interface ServiceExecutionAspect.MethodInvocation
          A wrapper for method invocation.
 
Method Summary
 Object invoke(SpaceRemotingInvocation invocation, ServiceExecutionAspect.MethodInvocation method, Object service)
          A service execution callback allows to wrap the execution of "server side" service.
 

Method Detail

invoke

Object invoke(SpaceRemotingInvocation invocation,
              ServiceExecutionAspect.MethodInvocation 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 arguments.

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

Throws:
InvocationTargetException
IllegalAccessException

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.