@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 |
| 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 |
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
|
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
@Autowired protected RuntimeEnvironmentPropertiesManager propMgr
public String resolveSystemProperty(String name)
SystemPropertiesServiceresolveSystemProperty in interface SystemPropertiesServiceprotected String buildKey(String propertyName)
propertyName - protected net.sf.ehcache.Cache getSystemPropertyCache()
public 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.