Class ProxyIndirectionHandler
- java.lang.Object
-
- org.eclipse.persistence.internal.indirection.ProxyIndirectionHandler
-
- All Implemented Interfaces:
Serializable
,InvocationHandler
public class ProxyIndirectionHandler extends Object implements InvocationHandler, Serializable
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
- Author:
- Rick Barkhouse
- See Also:
ProxyIndirectionPolicy
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProxyIndirectionHandler()
INTERNAL: Just in here to allow for Serialization.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueHolderInterface<?>
getValueHolder()
INTERNAL: Get the ValueHolder associated with this handler.Object
invoke(Object proxy, Method m, Object[] args)
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<?> value)
INTERNAL: Set the ValueHolder associated with this handler.
-
-
-
Method Detail
-
invoke
public Object invoke(Object proxy, Method m, Object[] args) throws Throwable
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
public ValueHolderInterface<?> getValueHolder()
INTERNAL: Get the ValueHolder associated with this handler.
-
setValueHolder
public void setValueHolder(ValueHolderInterface<?> value)
INTERNAL: Set the ValueHolder associated with this handler.
-
-