Class AssetProcessorResolverImpl
java.lang.Object
org.craftercms.studio.impl.v1.asset.processing.AssetProcessorResolverImpl
- All Implemented Interfaces:
AssetProcessorResolver
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class AssetProcessorResolverImpl
extends Object
implements AssetProcessorResolver, org.springframework.context.ApplicationContextAware
Default implementation for
AssetProcessorResolver
.- Author:
- avasquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProcessor
(ProcessorConfiguration config) Returns anAssetProcessor
that's compatible with the specified configurationvoid
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
AssetProcessorResolverImpl
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
getProcessor
Description copied from interface:AssetProcessorResolver
Returns anAssetProcessor
that's compatible with the specified configuration- Specified by:
getProcessor
in interfaceAssetProcessorResolver
- Parameters:
config
- the configuration- Returns:
- the asset processor for the given configuration
- Throws:
AssetProcessingException
- if there's an error while retrieving the processor or if the configuration is invalid
-