Interface Transformation<T extends TransformationExecutionContext>
-
- All Known Subinterfaces:
AggregationTransformation
public interface Transformation<T extends TransformationExecutionContext>
Provides transformation methods.Life cycle
When import, export, or transfer services are called:
- The specified class is instantiated through its
TransformationDefinition
. It is initialized only once when calling the import, export, or transfer services. - The
setup(TransformationConfigurationContext)
method is called for the new instance.
During the import/export/transfer operational phase, the
execute(TransformationExecutionContext)
method is called each time an associated source field must be imported/exported/transferred to the target field.- Since:
- 2.3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
execute(T executionContext)
Executes the transformation.void
setup(TransformationConfigurationContext configurationContext)
Checks and prepares this instance.
-
-
-
Method Detail
-
setup
void setup(TransformationConfigurationContext configurationContext) throws DataExchangeException
Checks and prepares this instance.- Throws:
DataExchangeException
-
execute
java.lang.Object execute(T executionContext) throws DataExchangeException
Executes the transformation.Multi-threading
For a single instance of this interface, this method may be called concurrently by several threads.- Throws:
DataExchangeException
-
-