Package 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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA wrapper for method invocation. -
Method Summary
Modifier and TypeMethodDescriptioninvoke(SpaceRemotingInvocation invocation, ServiceExecutionAspect.MethodInvocation method, Object service) A service execution callback allows to wrap the execution of "server side" service.
-
Method Details
-
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, theinvokemethod will need to be called on the passedMethodusing the service as the actual service to invoke it on, andSpaceRemotingInvocation.getArguments()as the method arguments.As an example:
method.invoke(service, invocation.getArguments()).
-