Interface SystemPropertiesService
- All Known Implementing Classes:
SystemPropertiesServiceImpl
public interface SystemPropertiesService
To change this template use File | Settings | File Templates.
User: Kelly Tisdell
Date: 6/25/12
-
Method Summary
Modifier and TypeMethodDescriptionFinds a SystemProperty by its internal idbooleanisValueValidForType(String value, SystemPropertyFieldType type) Determines if the given value is valid for the specified typevoidremoveFromCache(SystemProperty systemProperty) Evicts the given SystemProperty from the cachebooleanResolves a boolean system property.booleanresolveBooleanSystemProperty(String name, boolean defaultValue) intResolves an int system property.intresolveIntSystemProperty(String name, int defaultValue) longResolves an long system property.longresolveLongSystemProperty(String name, long defaultValue) resolveSystemProperty(String name) Preferred method for looking up properties.resolveSystemProperty(String name, String defaultValue)
-
Method Details
-
resolveSystemProperty
Preferred method for looking up properties. The method will return the configured value or if no override value is found, it will return the value passed in to the method as the default value.- Parameters:
name-- Returns:
-
resolveSystemProperty
-
resolveIntSystemProperty
Resolves an int system property. Returns 0 when no matching property is found.- Parameters:
name-- Returns:
-
resolveIntSystemProperty
-
resolveBooleanSystemProperty
Resolves a boolean system property. Returns false when no matching system property is found.- Parameters:
name-- Returns:
-
resolveBooleanSystemProperty
-
resolveLongSystemProperty
Resolves an long system property. Returns 0 when no matching property is found.- Parameters:
name-- Returns:
-
resolveLongSystemProperty
-
isValueValidForType
Determines if the given value is valid for the specified type- Parameters:
value-type-- Returns:
- whether or not the SystemProperty is in a valid state
-
removeFromCache
Evicts the given SystemProperty from the cache- Parameters:
systemProperty-
-
findById
Finds a SystemProperty by its internal id- Parameters:
id-- Returns:
- the
SystemProperty
-