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 forAssetProcessorResolver
.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description AssetProcessorResolverImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetProcessor
getProcessor(ProcessorConfiguration config)
Returns anAssetProcessor
that's compatible with the specified configurationvoid
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setBeanNameFormat(String beanNameFormat)
-
-
-
Method Detail
-
setBeanNameFormat
public void setBeanNameFormat(String beanNameFormat)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
getProcessor
public AssetProcessor getProcessor(ProcessorConfiguration config) throws AssetProcessingException
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
-
-