Class AbstractDTOFactory<Type,DTOType>
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
An abstract factory for DTOs which allows for centralizing some common logic.
- Since:
- 1.3, 1.2, 1.1.4
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDTOFactory(ArtifactAstSerializerMetadata serializerMetadata) -
Method Summary
-
Constructor Details
-
AbstractDTOFactory
-
-
Method Details
-
from
Creates the DTO from the original object.- Parameters:
original- Original object.- Returns:
- The DTO that represents the original object.
-
doCreateFrom
Subclasses should implement this to do the actual DTO creation.- Parameters:
original- Original object.- Returns:
- The DTO that represents the original object.
-