Class SysParamHandlerImpl

java.lang.Object
net.ideahut.springboot.sysparam.SysParamHandlerImpl
All Implemented Interfaces:
BeanConfigure<net.ideahut.springboot.sysparam.SysParamHandler>, net.ideahut.springboot.bean.BeanReload, net.ideahut.springboot.sysparam.SysParamHandler, net.ideahut.springboot.sysparam.SysParamReloader, net.ideahut.springboot.sysparam.SysParamRemover, org.springframework.beans.factory.InitializingBean

public class SysParamHandlerImpl extends Object implements net.ideahut.springboot.sysparam.SysParamHandler, net.ideahut.springboot.sysparam.SysParamRemover, net.ideahut.springboot.sysparam.SysParamReloader, org.springframework.beans.factory.InitializingBean, net.ideahut.springboot.bean.BeanReload, BeanConfigure<net.ideahut.springboot.sysparam.SysParamHandler>
  • Constructor Details

    • SysParamHandlerImpl

      public SysParamHandlerImpl()
  • Method Details

    • setPrefix

      public SysParamHandlerImpl setPrefix(String prefix)
    • setDataMapper

      public SysParamHandlerImpl setDataMapper(DataMapper dataMapper)
    • setRedisTemplate

      public SysParamHandlerImpl setRedisTemplate(org.springframework.data.redis.core.RedisTemplate<String,byte[]> redisTemplate)
    • setReloader

      public SysParamHandlerImpl setReloader(net.ideahut.springboot.sysparam.SysParamReloader reloader)
    • afterPropertiesSet

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

      public Callable<net.ideahut.springboot.sysparam.SysParamHandler> configureBean(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      configureBean in interface BeanConfigure<net.ideahut.springboot.sysparam.SysParamHandler>
    • isBeanConfigured

      public boolean isBeanConfigured()
      Specified by:
      isBeanConfigured in interface BeanConfigure<net.ideahut.springboot.sysparam.SysParamHandler>
    • reloadBean

      public boolean reloadBean() throws Exception
      Specified by:
      reloadBean in interface net.ideahut.springboot.bean.BeanReload
      Throws:
      Exception
    • remove

      public void remove(Collection<String> sysCodes)
      Specified by:
      remove in interface net.ideahut.springboot.sysparam.SysParamRemover
    • remove

      public void remove(String sysCode, String paramCode)
      Specified by:
      remove in interface net.ideahut.springboot.sysparam.SysParamRemover
    • reload

      public List<net.ideahut.springboot.sysparam.SysParamDto> reload(Collection<String> sysCodes)
      Specified by:
      reload in interface net.ideahut.springboot.sysparam.SysParamReloader
    • getSysParam

      public net.ideahut.springboot.sysparam.SysParamDto getSysParam(String sysCode, String paramCode)
      Specified by:
      getSysParam in interface net.ideahut.springboot.sysparam.SysParamHandler
    • getSysParamMap

      public Map<String,net.ideahut.springboot.sysparam.SysParamDto> getSysParamMap(String sysCode)
      Specified by:
      getSysParamMap in interface net.ideahut.springboot.sysparam.SysParamHandler
    • getSysParamMaps

      public Map<String,Map<String,net.ideahut.springboot.sysparam.SysParamDto>> getSysParamMaps(Collection<String> sysCodes)
      Specified by:
      getSysParamMaps in interface net.ideahut.springboot.sysparam.SysParamHandler
    • getValue

      public <T> T getValue(Class<T> type, String sysCode, String paramCode, T defaultValue)
      Specified by:
      getValue in interface net.ideahut.springboot.sysparam.SysParamHandler
    • getValue

      public <T> T getValue(Class<T> type, String sysCode, String paramCode)
      Specified by:
      getValue in interface net.ideahut.springboot.sysparam.SysParamHandler
    • getValue

      public <T> T getValue(Class<T> type, Map<String,net.ideahut.springboot.sysparam.SysParamDto> sysMap, String paramCode, T defaultValue)
      Specified by:
      getValue in interface net.ideahut.springboot.sysparam.SysParamHandler
    • getValue

      public <T> T getValue(Class<T> type, Map<String,net.ideahut.springboot.sysparam.SysParamDto> sysMap, String paramCode)
      Specified by:
      getValue in interface net.ideahut.springboot.sysparam.SysParamHandler
    • getBytes

      public byte[] getBytes(String sysCode, String paramCode, byte[] defaultValue)
      Specified by:
      getBytes in interface net.ideahut.springboot.sysparam.SysParamHandler
    • getBytes

      public byte[] getBytes(String sysCode, String paramCode)
      Specified by:
      getBytes in interface net.ideahut.springboot.sysparam.SysParamHandler