Class AssetProcessorPipelineImpl
java.lang.Object
org.craftercms.studio.impl.v1.asset.processing.AssetProcessorPipelineImpl
- All Implemented Interfaces:
AssetProcessorPipeline
Default implementation of
AssetProcessorPipeline.- Author:
- avasquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessAsset(ProcessorPipelineConfiguration config, Asset input) Processes the asset, only if there's a match withProcessorPipelineConfiguration.getInputPathPattern().
-
Constructor Details
-
AssetProcessorPipelineImpl
-
-
Method Details
-
processAsset
public List<Asset> processAsset(ProcessorPipelineConfiguration config, Asset input) throws AssetProcessingException Description copied from interface:AssetProcessorPipelineProcesses the asset, only if there's a match withProcessorPipelineConfiguration.getInputPathPattern(). If there's no match, an empty list is returned. Multiple outputs can be returned depending whether or not the processors of the pipeline have an output different than their input.- Specified by:
processAssetin interfaceAssetProcessorPipeline- Parameters:
config- the configuration to use for the pipeline executioninput- the input of the pipeline- Returns:
- the outputs, or an empty list if the input was not processed
- Throws:
AssetProcessingException- if an error occurs
-