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:
-
MethodInterceptor
PdxInstance
WritablePdxInstance
-
Constructor Summary
ConstructorsConstructorDescriptionPdxInstanceMethodInterceptor
(org.apache.geode.pdx.PdxInstance source) Constructs an instance ofPdxInstanceMethodInterceptor
initialized with the givensource
. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.geode.pdx.PdxInstance
Returns thesource
backing the proxy for intercepted method invocations.invoke
(org.aopalliance.intercept.MethodInvocation invocation) static PdxInstanceMethodInterceptor
Factory method used to construct an instance ofPdxInstanceMethodInterceptor
initialized with the givensource
.static PdxInstanceMethodInterceptor
newPdxInstanceMethodInterceptor
(org.apache.geode.pdx.PdxInstance source) Factory method used to construct an instance ofPdxInstanceMethodInterceptor
initialized with the givenPdxInstance
.
-
Constructor Details
-
PdxInstanceMethodInterceptor
public PdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source) Constructs an instance ofPdxInstanceMethodInterceptor
initialized with the givensource
.- Parameters:
source
-PdxInstance
used as the source to back the proxy in method invocations.- Throws:
IllegalArgumentException
- ifsource
is null.- See Also:
-
PdxInstance
-
-
Method Details
-
newPdxInstanceMethodInterceptor
Factory method used to construct an instance ofPdxInstanceMethodInterceptor
initialized with the givensource
.- Parameters:
source
-Object
serving as the source to back the proxy in method invocations. Source must be an instance ofPdxInstance
.- Returns:
- a new instance of
PdxInstanceMethodInterceptor
initialized with the givensource
. - Throws:
IllegalArgumentException
- ifsource
is not an instance ofPdxInstance
.- See Also:
-
newPdxInstanceMethodInterceptor
public static PdxInstanceMethodInterceptor newPdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source) Factory method used to construct an instance ofPdxInstanceMethodInterceptor
initialized with the givenPdxInstance
.- Parameters:
source
-PdxInstance
serving as the source to back the proxy in method invocations. Source must not be null.- Returns:
- a new instance of
PdxInstanceMethodInterceptor
initialized with the givensource
. - Throws:
IllegalArgumentException
- ifsource
is null.- See Also:
-
PdxInstanceMethodInterceptor(PdxInstance)
PdxInstance
-
getSource
protected org.apache.geode.pdx.PdxInstance getSource()Returns thesource
backing the proxy for intercepted method invocations.- Returns:
- the
source
backing the proxy for intercepted method invocations. - See Also:
-
PdxInstance
-
invoke
- Specified by:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
- Throws:
Throwable
-