Class CopyHandler
java.lang.Object
com.blackbuild.klum.ast.runtime.internal.CopyHandler
Handles the copying of properties from one object to another.
Will support different override strategies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyToFrom(Object target, Object donor) Copies properties from the donor to the target object.voiddoCopy()
-
Constructor Details
-
CopyHandler
-
-
Method Details
-
copyToFrom
Copies properties from the donor to the target object. Copying is done according to the annotations on the target object's class and can be customized by using theOverwriteannotation, as well as its inner class annotations.- Parameters:
target- the object to copy todonor- the object to copy from
-
doCopy
public void doCopy()
-