Spring Data for VMware GemFire
Class PdxInstanceMethodInterceptor
java.lang.Object
org.springframework.data.gemfire.search.lucene.support.PdxInstanceMethodInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class PdxInstanceMethodInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor
The
PdxInstanceMethodInterceptor class is a MethodInterceptor wrapping a PdxInstance
to back a proxy during intercepted method invocations.- Since:
- 1.1.0
- See Also:
-
MethodInterceptorPdxInstanceWritablePdxInstance
-
Constructor Summary
ConstructorsConstructorDescriptionPdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source) Constructs an instance ofPdxInstanceMethodInterceptorinitialized with the givensource. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.geode.pdx.PdxInstanceReturns thesourcebacking the proxy for intercepted method invocations.invoke(org.aopalliance.intercept.MethodInvocation invocation) static PdxInstanceMethodInterceptorFactory method used to construct an instance ofPdxInstanceMethodInterceptorinitialized with the givensource.static PdxInstanceMethodInterceptornewPdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source) Factory method used to construct an instance ofPdxInstanceMethodInterceptorinitialized with the givenPdxInstance.
-
Constructor Details
-
PdxInstanceMethodInterceptor
public PdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source) Constructs an instance ofPdxInstanceMethodInterceptorinitialized with the givensource.- Parameters:
source-PdxInstanceused as the source to back the proxy in method invocations.- Throws:
IllegalArgumentException- ifsourceis null.- See Also:
-
PdxInstance
-
-
Method Details
-
newPdxInstanceMethodInterceptor
Factory method used to construct an instance ofPdxInstanceMethodInterceptorinitialized with the givensource.- Parameters:
source-Objectserving as the source to back the proxy in method invocations. Source must be an instance ofPdxInstance.- Returns:
- a new instance of
PdxInstanceMethodInterceptorinitialized with the givensource. - Throws:
IllegalArgumentException- ifsourceis not an instance ofPdxInstance.- See Also:
-
newPdxInstanceMethodInterceptor
public static PdxInstanceMethodInterceptor newPdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source) Factory method used to construct an instance ofPdxInstanceMethodInterceptorinitialized with the givenPdxInstance.- Parameters:
source-PdxInstanceserving as the source to back the proxy in method invocations. Source must not be null.- Returns:
- a new instance of
PdxInstanceMethodInterceptorinitialized with the givensource. - Throws:
IllegalArgumentException- ifsourceis null.- See Also:
-
PdxInstanceMethodInterceptor(PdxInstance)PdxInstance
-
getSource
protected org.apache.geode.pdx.PdxInstance getSource()Returns thesourcebacking the proxy for intercepted method invocations.- Returns:
- the
sourcebacking the proxy for intercepted method invocations. - See Also:
-
PdxInstance
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-