ValueHolder when necessary.
org.eclipse.persistence.internal.indirection.ProxyIndirectionPolicy
| Modifier and Type | Field and Description |
|---|---|
| private ValueHolderInterface |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ValueHolderInterface | |
| public Object | invoke(final Object
the proxy instance that the method was invoked on proxy, final Method the m, final Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. |
| public static <T> Object | newProxyInstance(final Class<?> anInterface, final Class<?>[] interfaces, final ValueHolderInterface<T> valueHolder)
INTERNAL: Utility method to create a new proxy object. |
| public void | setValueHolder(ValueHolderInterface<T> value)
INTERNAL: Set the ValueHolder associated with this handler. |
| valueHolder | back to summary |
|---|---|
| private ValueHolderInterface<T> valueHolder | |
| ProxyIndirectionHandler | back to summary |
|---|---|
| public ProxyIndirectionHandler() INTERNAL: Just in here to allow for Serialization. | |
| ProxyIndirectionHandler | back to summary |
|---|---|
| private ProxyIndirectionHandler(ValueHolderInterface<T> valueHolder) INTERNAL: Store the value holder. | |
| getValueHolder | back to summary |
|---|---|
| public ValueHolderInterface INTERNAL: Get the ValueHolder associated with this handler. | |
| invoke | back to summary |
|---|---|
| public Object invoke(final Object proxy, final Method m, final Object[] args) throws Throwable Implements java. INTERNAL: Handle the method calls on the proxy object.
| |
| newProxyInstance | back to summary |
|---|---|
| public static <T> Object newProxyInstance(final Class<?> anInterface, final Class<?>[] interfaces, final ValueHolderInterface<T> valueHolder) INTERNAL: Utility method to create a new proxy object. | |
| setValueHolder | back to summary |
|---|---|
| public void setValueHolder(ValueHolderInterface<T> value) INTERNAL: Set the ValueHolder associated with this handler. | |