Class AssetProcessingConfigReaderImpl
java.lang.Object
org.craftercms.studio.impl.v1.asset.processing.AssetProcessingConfigReaderImpl
- All Implemented Interfaces:
AssetProcessingConfigReader
Default implementation for
AssetProcessingConfigReader.- Author:
- avasquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads the configuration from the input stream and maps it toProcessorPipelineConfigurationobjects.readConfig(org.apache.commons.configuration2.HierarchicalConfiguration config) Reads the configuration from the Apache Commons Configuration and maps it toProcessorPipelineConfigurationobjects.
-
Field Details
-
PIPELINES_CONFIG_KEY
- See Also:
-
INPUT_PATH_PATTERN_CONFIG_KEY
- See Also:
-
KEEP_ORIGINAL_CONFIG_KEY
- See Also:
-
PROCESSORS_CONFIG_KEY
- See Also:
-
PROCESSOR_TYPE_CONFIG_KEY
- See Also:
-
PROCESSOR_PARAMS_CONFIG_KEY
- See Also:
-
PROCESSOR_OUTPUT_PATH_FORMAT_CONFIG_KEY
- See Also:
-
-
Constructor Details
-
AssetProcessingConfigReaderImpl
public AssetProcessingConfigReaderImpl()
-
-
Method Details
-
readConfig
public List<ProcessorPipelineConfiguration> readConfig(InputStream in) throws AssetProcessingConfigurationException Description copied from interface:AssetProcessingConfigReaderReads the configuration from the input stream and maps it toProcessorPipelineConfigurationobjects.- Specified by:
readConfigin interfaceAssetProcessingConfigReader- Parameters:
in- the input stream of the configuration- Returns:
- the list with the pipeline configurations.
- Throws:
AssetProcessingConfigurationException- if the configuration couldn't be read because of an error
-
readConfig
public List<ProcessorPipelineConfiguration> readConfig(org.apache.commons.configuration2.HierarchicalConfiguration config) throws AssetProcessingConfigurationException Description copied from interface:AssetProcessingConfigReaderReads the configuration from the Apache Commons Configuration and maps it toProcessorPipelineConfigurationobjects.- Specified by:
readConfigin interfaceAssetProcessingConfigReader- Parameters:
config- the Apache Commons Configuration- Returns:
- the list with the pipeline configurations.
- Throws:
AssetProcessingConfigurationException- if the configuration couldn't be read because of an error
-