Class AssetProcessorPipelineImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v1.asset.processing.AssetProcessorPipelineImpl
-
- All Implemented Interfaces:
AssetProcessorPipeline
public class AssetProcessorPipelineImpl extends Object implements AssetProcessorPipeline
Default implementation ofAssetProcessorPipeline
.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description AssetProcessorPipelineImpl(AssetProcessorResolver processorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Asset>
processAsset(ProcessorPipelineConfiguration config, Asset input)
Processes the asset, only if there's a match withProcessorPipelineConfiguration.getInputPathPattern()
.
-
-
-
Constructor Detail
-
AssetProcessorPipelineImpl
public AssetProcessorPipelineImpl(AssetProcessorResolver processorFactory)
-
-
Method Detail
-
processAsset
public List<Asset> processAsset(ProcessorPipelineConfiguration config, Asset input) throws AssetProcessingException
Description copied from interface:AssetProcessorPipeline
Processes 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:
processAsset
in 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
-
-