@Target(value=FIELD) @Retention(value=RUNTIME) @Documented public @interface DelayedCopy
Copyable
fields to indicate that a delayed copy proxy should be used
instead of the original component when performing a deep copying on the field.Modifier and Type | Optional Element and Description |
---|---|
boolean |
inherit
May be used to indicate the presence of this annotation on the field referring to the object
should be used to determine if this field should be delayed.
|
public abstract boolean inherit
For example, LifecycleAwareList
is a delegating list wrapper and since it implements
the List
interface is treated as a List
rather than a Copyable
when
performing a deep copy. The presence of with inherit()
set to true on the delegate indicates that the items in the delegated list should be delayed
only if the undelegated list reference also has the DelayedCopy
annotation.
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.