Class 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 Details

    • SpringConfigProvider

      public SpringConfigProvider()
  • Method Details

    • 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
    • newContext

      public CacheContext newContext(CacheManager cacheManager)
      Overrides:
      newContext in class ConfigProvider
    • setEncoderParser

      @Autowired(required=false) public void setEncoderParser(EncoderParser encoderParser)
      Overrides:
      setEncoderParser in class ConfigProvider
    • setKeyConvertorParser

      @Autowired(required=false) public void setKeyConvertorParser(KeyConvertorParser keyConvertorParser)
      Overrides:
      setKeyConvertorParser in class ConfigProvider
    • setMetricsCallback

      @Autowired(required=false) public void setMetricsCallback(Consumer<StatInfo> metricsCallback)
      Overrides:
      setMetricsCallback in class ConfigProvider