@Service(value="blSystemPropertiesService") public class SystemPropertiesServiceImpl extends Object implements SystemPropertiesService
| Modifier and Type | Field and Description |
|---|---|
protected SystemPropertyServiceExtensionManager |
extensionManager |
protected RuntimeEnvironmentPropertiesManager |
propMgr |
protected SystemPropertiesDao |
systemPropertiesDao |
protected net.sf.ehcache.Cache |
systemPropertyCache |
protected int |
systemPropertyCacheTimeout |
| Constructor and Description |
|---|
SystemPropertiesServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPropertyToCache(String propertyName,
String propertyValue) |
protected String |
buildKey(String propertyName)
Properties can vary by site.
|
protected String |
buildKey(SystemProperty systemProperty)
Properties can vary by site.
|
SystemProperty |
findById(Long id)
Finds a SystemProperty by its internal id
|
protected String |
getPropertyFromCache(String propertyName) |
protected net.sf.ehcache.Cache |
getSystemPropertyCache() |
boolean |
isValueValidForType(String value,
SystemPropertyFieldType type)
Determines if the given value is valid for the specified type
|
void |
removeFromCache(SystemProperty systemProperty)
Evicts the given SystemProperty from the cache
|
boolean |
resolveBooleanSystemProperty(String name)
Resolves a boolean system property.
|
int |
resolveIntSystemProperty(String name)
Resolves an int system property.
|
long |
resolveLongSystemProperty(String name)
Resolves an long system property.
|
String |
resolveSystemProperty(String name)
Preferred method for looking up properties.
|
protected net.sf.ehcache.Cache systemPropertyCache
protected SystemPropertiesDao systemPropertiesDao
protected SystemPropertyServiceExtensionManager extensionManager
@Value(value="${system.property.cache.timeout}")
protected int systemPropertyCacheTimeout
@Autowired protected RuntimeEnvironmentPropertiesManager propMgr
public String resolveSystemProperty(String name)
SystemPropertiesServiceresolveSystemProperty in interface SystemPropertiesServiceprotected String buildKey(String propertyName)
propertyName - protected String buildKey(SystemProperty systemProperty)
systemProperty - protected net.sf.ehcache.Cache getSystemPropertyCache()
public SystemProperty findById(Long id)
SystemPropertiesServicefindById in interface SystemPropertiesServiceSystemPropertypublic void removeFromCache(SystemProperty systemProperty)
SystemPropertiesServiceremoveFromCache in interface SystemPropertiesServicepublic int resolveIntSystemProperty(String name)
SystemPropertiesServiceresolveIntSystemProperty in interface SystemPropertiesServicepublic boolean resolveBooleanSystemProperty(String name)
SystemPropertiesServiceresolveBooleanSystemProperty in interface SystemPropertiesServicepublic long resolveLongSystemProperty(String name)
SystemPropertiesServiceresolveLongSystemProperty in interface SystemPropertiesServicepublic boolean isValueValidForType(String value, SystemPropertyFieldType type)
SystemPropertiesServiceisValueValidForType in interface SystemPropertiesServiceCopyright © 2014. All Rights Reserved.