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 Details

    • AssetProcessorResolverImpl

      public AssetProcessorResolverImpl()
  • Method Details

    • setBeanNameFormat

      public void setBeanNameFormat(String beanNameFormat)
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • getProcessor

      public AssetProcessor getProcessor(ProcessorConfiguration config) throws AssetProcessingException
      Description copied from interface: AssetProcessorResolver
      Returns an AssetProcessor that's compatible with the specified configuration
      Specified by:
      getProcessor in interface AssetProcessorResolver
      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