Class TransferObjectFactory


  • public final class TransferObjectFactory
    extends Object
    TransferObject factory, creates specialized instances depending of the copy object type.
    • Method Detail

      • create

        public static TransferObject<?> create​(Object objectToCopy,
                                               Form sourceForm)
        Creates specialized instance depending of the copy object type.
        Parameters:
        objectToCopy - object to copy, cannot be null
        sourceForm - the form that corresponds to the object to copy, cannot be null
        Returns:
        TransferObject-based instance, never null
      • create

        public static TransferObject<?> create​(Object objectToCopy,
                                               Form sourceForm,
                                               AbstractDataPath path)
        Creates specialized instance depending of the copy object type.
        Parameters:
        objectToCopy - object to copy, cannot be null
        sourceForm - the form that corresponds to the object to copy, cannot be null
        path - the data path that corresponds to the object to copy, cannot be null
        Returns:
        TransferObject-based instance, never null