T - Parameter type for the transform action. Should be TransformParameters.None if the action does not have parameters.@Incubating public interface TransformAction<T extends TransformParameters>
Implementations must provide a public constructor.
Implementations can receive parameters by using annotated abstract getter methods.
A property annotated with InputArtifact will receive the input artifact location, which is the file or directory that the transform should be applied to.
A property annotated with InputArtifactDependencies will receive the dependencies of its input artifact.
| Modifier and Type | Method | Description |
|---|---|---|
T |
getParameters() |
The object provided by
TransformSpec.getParameters(). |
void |
transform(TransformOutputs outputs) |
Executes the transform.
|
@Inject T getParameters()
TransformSpec.getParameters().void transform(TransformOutputs outputs)
outputs - Receives the outputs of the transform.