Package net.ideahut.springboot.sysparam
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCallable<net.ideahut.springboot.sysparam.SysParamHandler>configureBean(org.springframework.context.ApplicationContext applicationContext) byte[]byte[]net.ideahut.springboot.sysparam.SysParamDtogetSysParam(String sysCode, String paramCode) getSysParamMap(String sysCode) getSysParamMaps(Collection<String> sysCodes) <T> T<T> T<T> TgetValue(Class<T> type, Map<String, net.ideahut.springboot.sysparam.SysParamDto> sysMap, String paramCode) <T> TgetValue(Class<T> type, Map<String, net.ideahut.springboot.sysparam.SysParamDto> sysMap, String paramCode, T defaultValue) booleanList<net.ideahut.springboot.sysparam.SysParamDto>reload(Collection<String> sysCodes) booleanvoidvoidremove(Collection<String> sysCodes) setDataMapper(DataMapper dataMapper) setRedisTemplate(org.springframework.data.redis.core.RedisTemplate<String, byte[]> redisTemplate) setReloader(net.ideahut.springboot.sysparam.SysParamReloader reloader)
-
Constructor Details
-
SysParamHandlerImpl
public SysParamHandlerImpl()
-
-
Method Details
-
setPrefix
-
setDataMapper
-
setRedisTemplate
public SysParamHandlerImpl setRedisTemplate(org.springframework.data.redis.core.RedisTemplate<String, byte[]> redisTemplate) -
setReloader
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
configureBean
public Callable<net.ideahut.springboot.sysparam.SysParamHandler> configureBean(org.springframework.context.ApplicationContext applicationContext) - Specified by:
configureBeanin interfaceBeanConfigure<net.ideahut.springboot.sysparam.SysParamHandler>
-
isBeanConfigured
public boolean isBeanConfigured()- Specified by:
isBeanConfiguredin interfaceBeanConfigure<net.ideahut.springboot.sysparam.SysParamHandler>
-
reloadBean
- Specified by:
reloadBeanin interfacenet.ideahut.springboot.bean.BeanReload- Throws:
Exception
-
remove
- Specified by:
removein interfacenet.ideahut.springboot.sysparam.SysParamRemover
-
remove
- Specified by:
removein interfacenet.ideahut.springboot.sysparam.SysParamRemover
-
reload
- Specified by:
reloadin interfacenet.ideahut.springboot.sysparam.SysParamReloader
-
getSysParam
- Specified by:
getSysParamin interfacenet.ideahut.springboot.sysparam.SysParamHandler
-
getSysParamMap
- Specified by:
getSysParamMapin interfacenet.ideahut.springboot.sysparam.SysParamHandler
-
getSysParamMaps
public Map<String,Map<String, getSysParamMapsnet.ideahut.springboot.sysparam.SysParamDto>> (Collection<String> sysCodes) - Specified by:
getSysParamMapsin interfacenet.ideahut.springboot.sysparam.SysParamHandler
-
getValue
- Specified by:
getValuein interfacenet.ideahut.springboot.sysparam.SysParamHandler
-
getValue
- Specified by:
getValuein interfacenet.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:
getValuein interfacenet.ideahut.springboot.sysparam.SysParamHandler
-
getValue
public <T> T getValue(Class<T> type, Map<String, net.ideahut.springboot.sysparam.SysParamDto> sysMap, String paramCode) - Specified by:
getValuein interfacenet.ideahut.springboot.sysparam.SysParamHandler
-
getBytes
- Specified by:
getBytesin interfacenet.ideahut.springboot.sysparam.SysParamHandler
-
getBytes
- Specified by:
getBytesin interfacenet.ideahut.springboot.sysparam.SysParamHandler
-