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 idboolean
isValueValidForType
(String value, SystemPropertyFieldType type) Determines if the given value is valid for the specified typevoid
removeFromCache
(SystemProperty systemProperty) Evicts the given SystemProperty from the cacheboolean
Resolves a boolean system property.boolean
resolveBooleanSystemProperty
(String name, boolean defaultValue) int
Resolves an int system property.int
resolveIntSystemProperty
(String name, int defaultValue) long
Resolves an long system property.long
resolveLongSystemProperty
(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
-