ExplicitMinimizeTransformer
, ImplicitMinimizeTransformer
, RabinDegeneralization
, RewriterTransformer
, Transformers.SimpleTransformer
@FunctionalInterface
public static interface Transformer.Instance
Modifier and Type | Method | Description |
---|---|---|
default void |
closeTransformer() |
Utility method to clean up any stateful resources.
|
java.lang.Object |
transform(java.lang.Object object,
PipelineExecutionContext context) |
Applies the transformation represented by this transformer to the given object.
|
default void closeTransformer()
transform(Object,
PipelineExecutionContext)
is not active during the call to this method and never will be
afterwards. Moreover, the environment is not yet shutdown
.
While it is encouraged that transformers are stateless, i.e. calls to transform(Object, PipelineExecutionContext)
don't leave any traces, some special cases may
need to allocate resources for performance. For example, when delegating input to an external
tool, this tool may be invoked once and then the processing is delegated via its input and
output channels.
java.lang.Object transform(java.lang.Object object, PipelineExecutionContext context) throws java.lang.Exception
java.lang.Exception