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 Summary
FieldsModifier and TypeFieldDescriptionprotected URIprotected List<org.springframework.core.io.Resource>Fields inherited from class org.broadleafcommerce.common.extensibility.cache.DefaultJCacheUriProvider
configLocation, isLocationRelative -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected FilecreateTemporaryMergeXml(org.springframework.core.io.Resource mergedJcacheResource) Returns the URI that should be used for JCache configurationprotected voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetConfigLocations(List<org.springframework.core.io.Resource> configLocations)
-
Field Details
-
mergedCacheConfigLocations
-
cacheManagerUri
-
configLocations
-
-
Constructor Details
-
DefaultEhCacheUriProvider
public DefaultEhCacheUriProvider()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getJCacheUri
Description copied from interface:JCacheUriProviderReturns the URI that should be used for JCache configuration- Specified by:
getJCacheUriin interfaceJCacheUriProvider- Overrides:
getJCacheUriin classDefaultJCacheUriProvider- Returns:
- the URI to use
-
mergeCacheLocations
- Throws:
IOException
-
createTemporaryMergeXml
protected File createTemporaryMergeXml(org.springframework.core.io.Resource mergedJcacheResource) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.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
-