Class LazyLoadingRemoteInvocationAspect
java.lang.Object
org.openspaces.remoting.scripting.LazyLoadingRemoteInvocationAspect
- All Implemented Interfaces:
RemoteInvocationAspect
The lazy loading remote invocation aspect wraps the actual remote invocation and adds support for
LazyLoadingScripts.
If the scipt being executed is a lazy loading script, and it is cacheable, the actual script
content will not be sent to the remote service. If the script is already complied and cached,
there is no need to get the actual script content, and it will be executed. If the script if not
loaded (i.e. not compiled and cached), the scripting executor will throw a ScriptNotLoadedException exception, which then the script will
be loaded and executed again.
- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(org.aopalliance.intercept.MethodInvocation methodInvocation, RemotingInvoker remotingInvoker) If the scipt being executed is a lazy loading script, and it is cacheable, the actual script content will not be sent to the remote service.
-
Constructor Details
-
LazyLoadingRemoteInvocationAspect
public LazyLoadingRemoteInvocationAspect()
-
-
Method Details
-
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation, RemotingInvoker remotingInvoker) throws Throwable If the scipt being executed is a lazy loading script, and it is cacheable, the actual script content will not be sent to the remote service. If the script is already complied and cached, there is no need to get the actual script content, and it will be executed. If the script if not loaded (i.e. not compiled and cached), the scripting executor will throw aScriptNotLoadedExceptionexception, which then the script will be loaded and executed again.- Specified by:
invokein interfaceRemoteInvocationAspect- Throws:
Throwable
-