Annotation Interface DelayedCopy
Annotation for
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.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanMay 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.
-
Element Details
-
inherit
boolean inheritMay 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.For example,
LifecycleAwareListis a delegating list wrapper and since it implements theListinterface is treated as aListrather than aCopyablewhen performing a deep copy. The presence of withinherit()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 theDelayedCopyannotation.- Returns:
- True if the parent field determines whether or not to delay copying the field, false to always delay copy of the annotated field.
- Default:
false
-