Class AssetProcessingConfigReaderImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v1.asset.processing.AssetProcessingConfigReaderImpl
-
- All Implemented Interfaces:
AssetProcessingConfigReader
public class AssetProcessingConfigReaderImpl extends Object implements AssetProcessingConfigReader
Default implementation forAssetProcessingConfigReader
.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description static String
INPUT_PATH_PATTERN_CONFIG_KEY
static String
KEEP_ORIGINAL_CONFIG_KEY
static String
PIPELINES_CONFIG_KEY
static String
PROCESSOR_OUTPUT_PATH_FORMAT_CONFIG_KEY
static String
PROCESSOR_PARAMS_CONFIG_KEY
static String
PROCESSOR_TYPE_CONFIG_KEY
static String
PROCESSORS_CONFIG_KEY
-
Constructor Summary
Constructors Constructor Description AssetProcessingConfigReaderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ProcessorPipelineConfiguration>
readConfig(InputStream in)
Reads the configuration from the input stream and maps it toProcessorPipelineConfiguration
objects.List<ProcessorPipelineConfiguration>
readConfig(org.apache.commons.configuration2.HierarchicalConfiguration config)
Reads the configuration from the Apache Commons Configuration and maps it toProcessorPipelineConfiguration
objects.
-
-
-
Field Detail
-
PIPELINES_CONFIG_KEY
public static final String PIPELINES_CONFIG_KEY
- See Also:
- Constant Field Values
-
INPUT_PATH_PATTERN_CONFIG_KEY
public static final String INPUT_PATH_PATTERN_CONFIG_KEY
- See Also:
- Constant Field Values
-
KEEP_ORIGINAL_CONFIG_KEY
public static final String KEEP_ORIGINAL_CONFIG_KEY
- See Also:
- Constant Field Values
-
PROCESSORS_CONFIG_KEY
public static final String PROCESSORS_CONFIG_KEY
- See Also:
- Constant Field Values
-
PROCESSOR_TYPE_CONFIG_KEY
public static final String PROCESSOR_TYPE_CONFIG_KEY
- See Also:
- Constant Field Values
-
PROCESSOR_PARAMS_CONFIG_KEY
public static final String PROCESSOR_PARAMS_CONFIG_KEY
- See Also:
- Constant Field Values
-
PROCESSOR_OUTPUT_PATH_FORMAT_CONFIG_KEY
public static final String PROCESSOR_OUTPUT_PATH_FORMAT_CONFIG_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
readConfig
public List<ProcessorPipelineConfiguration> readConfig(InputStream in) throws AssetProcessingConfigurationException
Description copied from interface:AssetProcessingConfigReader
Reads the configuration from the input stream and maps it toProcessorPipelineConfiguration
objects.- Specified by:
readConfig
in 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:AssetProcessingConfigReader
Reads the configuration from the Apache Commons Configuration and maps it toProcessorPipelineConfiguration
objects.- Specified by:
readConfig
in 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
-
-