Class DefaultEhCacheUriProvider

java.lang.Object
org.broadleafcommerce.common.extensibility.cache.DefaultJCacheUriProvider
org.broadleafcommerce.common.extensibility.cache.ehcache.DefaultEhCacheUriProvider
All Implemented Interfaces:
JCacheUriProvider, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

@Component("blJCacheUriProvider") @ConditionalOnEhCache public class DefaultEhCacheUriProvider extends DefaultJCacheUriProvider implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
  • Field Details

    • mergedCacheConfigLocations

      protected Set<String> mergedCacheConfigLocations
    • cacheManagerUri

      protected URI cacheManagerUri
    • configLocations

      protected List<org.springframework.core.io.Resource> configLocations
  • Constructor Details

    • DefaultEhCacheUriProvider

      public DefaultEhCacheUriProvider()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getJCacheUri

      public URI getJCacheUri()
      Description copied from interface: JCacheUriProvider
      Returns the URI that should be used for JCache configuration
      Specified by:
      getJCacheUri in interface JCacheUriProvider
      Overrides:
      getJCacheUri in class DefaultJCacheUriProvider
      Returns:
      the URI to use
    • mergeCacheLocations

      protected void mergeCacheLocations() throws IOException
      Throws:
      IOException
    • createTemporaryMergeXml

      protected File createTemporaryMergeXml(org.springframework.core.io.Resource mergedJcacheResource) throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • setConfigLocations

      public void setConfigLocations(List<org.springframework.core.io.Resource> configLocations) throws org.springframework.beans.BeansException
      Throws:
      org.springframework.beans.BeansException