Interface ResourceTransformer
-
@ConsumerType public interface ResourceTransformerA resource transformer transform a registered resource before it can be installed. Based on the transformation result, the installer creates one or moreTaskResources from the registered resources and passes them on to theInstallTaskFactory.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEOptional service registration property setting a unique name for the transformer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransformationResult[]transform(RegisteredResource resource)Try to transform the registered resource.
-
-
-
Field Detail
-
NAME
static final java.lang.String NAME
Optional service registration property setting a unique name for the transformer. The value of this property must be of type String.- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
transform
TransformationResult[] transform(RegisteredResource resource)
Try to transform the registered resource. If the transformer is not responsible for transforming the resource, it should returnnull- Parameters:
resource- The resource- Returns:
- An array of transformation results or
null
-
-