public class PdxInstanceMethodInterceptor extends Object implements MethodInterceptor
PdxInstanceMethodInterceptor class is a MethodInterceptor wrapping a PdxInstance
to back a proxy during intercepted method invocations.MethodInterceptor,
PdxInstance,
WritablePdxInstance| Constructor and Description |
|---|
PdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source)
Constructs an instance of
PdxInstanceMethodInterceptor initialized with
the given source. |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.geode.pdx.PdxInstance |
getSource()
Returns the
source backing the proxy for intercepted method invocations. |
Object |
invoke(MethodInvocation invocation) |
static PdxInstanceMethodInterceptor |
newPdxInstanceMethodInterceptor(Object source)
Factory method used to construct an instance of
PdxInstanceMethodInterceptor initialized with
the given source. |
static PdxInstanceMethodInterceptor |
newPdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source)
Factory method used to construct an instance of
PdxInstanceMethodInterceptor initialized
with the given PdxInstance. |
public PdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source)
PdxInstanceMethodInterceptor initialized with
the given source.source - PdxInstance used as the source to back the proxy in method invocations.IllegalArgumentException - if source is null.PdxInstancepublic static PdxInstanceMethodInterceptor newPdxInstanceMethodInterceptor(Object source)
PdxInstanceMethodInterceptor initialized with
the given source.source - Object serving as the source to back the proxy in method invocations.
Source must be an instance of PdxInstance.PdxInstanceMethodInterceptor initialized with the given source.IllegalArgumentException - if source is not an instance of PdxInstance.newPdxInstanceMethodInterceptor(PdxInstance)public static PdxInstanceMethodInterceptor newPdxInstanceMethodInterceptor(org.apache.geode.pdx.PdxInstance source)
PdxInstanceMethodInterceptor initialized
with the given PdxInstance.source - PdxInstance serving as the source to back the proxy in method invocations.
Source must not be null.PdxInstanceMethodInterceptor initialized with
the given source.IllegalArgumentException - if source is null.PdxInstanceMethodInterceptor(PdxInstance),
PdxInstanceprotected org.apache.geode.pdx.PdxInstance getSource()
source backing the proxy for intercepted method invocations.source backing the proxy for intercepted method invocations.PdxInstancepublic Object invoke(MethodInvocation invocation) throws Throwable
invoke in interface MethodInterceptorThrowableCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.