public class PdxInstanceMethodInterceptor extends Object implements org.aopalliance.intercept.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(org.aopalliance.intercept.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.PdxInstance
public 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)
,
PdxInstance
protected org.apache.geode.pdx.PdxInstance getSource()
source
backing the proxy for intercepted method invocations.source
backing the proxy for intercepted method invocations.PdxInstance
Copyright © 2011-2016–2017 Pivotal Software, Inc.. All rights reserved.