Package com.alicp.jetcache.anno.support
Class SpringConfigProvider
java.lang.Object
com.alicp.jetcache.support.AbstractLifecycle
com.alicp.jetcache.anno.support.ConfigProvider
com.alicp.jetcache.anno.support.SpringConfigProvider
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class SpringConfigProvider
extends ConfigProvider
implements org.springframework.context.ApplicationContextAware
Created on 2016/12/1.
- Author:
- huangli
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnewContext
(CacheManager cacheManager) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setEncoderParser
(EncoderParser encoderParser) void
setKeyConvertorParser
(KeyConvertorParser keyConvertorParser) void
setMetricsCallback
(Consumer<StatInfo> metricsCallback) Methods inherited from class com.alicp.jetcache.anno.support.ConfigProvider
createCacheNameGenerator, doShutdown, getCacheBuilderTemplate, getGlobalCacheConfig, parseKeyConvertor, parseValueDecoder, parseValueEncoder, setGlobalCacheConfig
Methods inherited from class com.alicp.jetcache.support.AbstractLifecycle
init, shutdown
-
Constructor Details
-
SpringConfigProvider
public SpringConfigProvider()
-
-
Method Details
-
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
-
newContext
- Overrides:
newContext
in classConfigProvider
-
setEncoderParser
- Overrides:
setEncoderParser
in classConfigProvider
-
setKeyConvertorParser
- Overrides:
setKeyConvertorParser
in classConfigProvider
-
setMetricsCallback
- Overrides:
setMetricsCallback
in classConfigProvider
-