Module org.eclipse.persistence.core
Class ProxyIndirectionHandler<T>
java.lang.Object
org.eclipse.persistence.internal.indirection.ProxyIndirectionHandler<T>
- All Implemented Interfaces:
Serializable
,InvocationHandler
ProxyIndirectionHandler
Transparently handles EclipseLink indirection for 1:1 relationships through use of the Java Proxy framework in JDK 1.3. This class intercepts messages sent to the proxy object, and instantiates its internalValueHolder
when necessary.- Since:
- TopLink 3.0
- See Also:
-
Constructor Summary
ConstructorDescriptionINTERNAL: Just in here to allow for Serialization. -
Method Summary
Modifier and TypeMethodDescriptionINTERNAL: Get the ValueHolder associated with this handler.INTERNAL: Handle the method calls on the proxy object.static <T> Object
newProxyInstance
(Class<?> anInterface, Class<?>[] interfaces, ValueHolderInterface<T> valueHolder) INTERNAL: Utility method to create a new proxy object.void
setValueHolder
(ValueHolderInterface<T> value) INTERNAL: Set the ValueHolder associated with this handler.
-
Constructor Details
-
ProxyIndirectionHandler
public ProxyIndirectionHandler()INTERNAL: Just in here to allow for Serialization.
-
-
Method Details
-
invoke
INTERNAL: Handle the method calls on the proxy object.- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
newProxyInstance
public static <T> Object newProxyInstance(Class<?> anInterface, Class<?>[] interfaces, ValueHolderInterface<T> valueHolder) INTERNAL: Utility method to create a new proxy object. -
getValueHolder
INTERNAL: Get the ValueHolder associated with this handler. -
setValueHolder
INTERNAL: Set the ValueHolder associated with this handler.
-