public class DelayedCopyableHandler extends Object implements InvocationHandler
Proxied objects served by this handler will refer to the original source object until a potentially read-write method is invoked. Once such a method is invoked, then the original source is copied to a new object on the fly and the call is forwarded to the copy.
| Modifier and Type | Method and Description | 
|---|---|
| static Copyable | getDelayedCopy(Copyable source)Get a proxy instance providing delayed copy behavior on a source component. | 
| Object | invoke(Object proxy,
            Method method,
            Object[] args)Intercept method calls, and copy the original source object as needed. | 
| static boolean | isPendingDelayedCopy(Copyable source)Determins if a source object is a delayed copy proxy that hasn't been copied yet. | 
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic static boolean isPendingDelayedCopy(Copyable source)
source - The object to check.public static Copyable getDelayedCopy(Copyable source)
source - The source objectCopyright © 2005–2014 The Kuali Foundation. All rights reserved.