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 URI
protected 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 TypeMethodDescriptionvoid
protected File
createTemporaryMergeXml
(org.springframework.core.io.Resource mergedJcacheResource) Returns the URI that should be used for JCache configurationprotected void
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setConfigLocations
(List<org.springframework.core.io.Resource> configLocations)
-
Field Details
-
mergedCacheConfigLocations
-
cacheManagerUri
-
configLocations
-
-
Constructor Details
-
DefaultEhCacheUriProvider
public DefaultEhCacheUriProvider()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getJCacheUri
Description copied from interface:JCacheUriProvider
Returns the URI that should be used for JCache configuration- Specified by:
getJCacheUri
in interfaceJCacheUriProvider
- Overrides:
getJCacheUri
in classDefaultJCacheUriProvider
- Returns:
- the URI to use
-
mergeCacheLocations
- 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 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
-