Class CopyHandler

java.lang.Object
com.blackbuild.klum.ast.runtime.internal.CopyHandler

public class CopyHandler extends Object
Handles the copying of properties from one object to another. Will support different override strategies.
  • Constructor Details

    • CopyHandler

      public CopyHandler(Object target, Object donor)
  • Method Details

    • copyToFrom

      public static void copyToFrom(Object target, Object donor)
      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 the Overwrite annotation, as well as its inner class annotations.
      Parameters:
      target - the object to copy to
      donor - the object to copy from
    • doCopy

      public void doCopy()