java.lang.Object
org.mule.runtime.ast.internal.serialization.dto.factory.AbstractDTOFactory<Type,DTOType>
Type Parameters:
Type - The original type.
DTOType - The DTO type.
Direct Known Subclasses:
ComponentParameterAstDTOFactory

public abstract class AbstractDTOFactory<Type,DTOType> extends Object
An abstract factory for DTOs which allows for centralizing some common logic.
Since:
1.3, 1.2, 1.1.4
  • Constructor Details

  • Method Details

    • from

      public DTOType from(Type original)
      Creates the DTO from the original object.
      Parameters:
      original - Original object.
      Returns:
      The DTO that represents the original object.
    • doCreateFrom

      protected abstract DTOType doCreateFrom(Type original)
      Subclasses should implement this to do the actual DTO creation.
      Parameters:
      original - Original object.
      Returns:
      The DTO that represents the original object.