|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase
public abstract class ConfigPropertiesCascadeBase
Base class for a cascaded config. Extend this class to have a config based on a certain file.
Constructor Summary | |
---|---|
ConfigPropertiesCascadeBase()
|
Method Summary | |
---|---|
boolean |
assertPropertyValueBoolean(java.lang.String key,
boolean required)
make sure a value is boolean in properties |
boolean |
assertPropertyValueClass(java.lang.String key,
java.lang.Class<?> classType,
boolean required)
make sure a property is a class of a certain type |
boolean |
assertPropertyValueRequired(java.lang.String key)
make sure a value exists in properties |
abstract void |
clearCachedCalculatedValues()
if there are things that are calculated, clear them out (e.g. |
boolean |
containsKey(java.lang.String key)
if the key is there, whether or not the value is blank |
java.util.Properties |
properties()
get the properties object for this config file |
java.util.Map<java.lang.String,java.lang.String> |
propertiesMap(java.util.regex.Pattern pattern)
find all keys/values with a certain pattern in a properties file. |
java.util.Map<java.lang.String,java.lang.String> |
propertiesOverrideMap()
override map for properties for testing |
java.util.Map<java.lang.String,java.lang.String> |
propertiesThreadLocalOverrideMap()
override map for properties in thread local to be used in a web server or the like, based on property class this is static since the properties class can get reloaded, but these shouldnt |
java.util.Set<java.lang.String> |
propertyNames()
|
java.lang.Boolean |
propertyValueBoolean(java.lang.String key)
get a boolean and validate from grouper.client.properties or null if not there |
boolean |
propertyValueBoolean(java.lang.String key,
boolean defaultValue)
get a boolean and validate from grouper.client.properties |
boolean |
propertyValueBooleanRequired(java.lang.String key)
get a boolean and validate from grouper.client.properties |
java.lang.Integer |
propertyValueInt(java.lang.String key)
get a boolean and validate from grouper.client.properties |
int |
propertyValueInt(java.lang.String key,
int defaultValue)
get a boolean and validate from grouper.client.properties |
int |
propertyValueIntRequired(java.lang.String key)
get a boolean and validate from grouper.client.properties |
java.lang.String |
propertyValueString(java.lang.String key)
get the property value as a string or null if not there |
java.lang.String |
propertyValueString(java.lang.String key,
java.lang.String defaultValue)
get the property value as a string |
java.lang.String |
propertyValueStringRequired(java.lang.String key)
get the property value as a string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigPropertiesCascadeBase()
Method Detail |
---|
public abstract void clearCachedCalculatedValues()
public java.util.Map<java.lang.String,java.lang.String> propertiesThreadLocalOverrideMap()
public java.util.Set<java.lang.String> propertyNames()
public java.util.Map<java.lang.String,java.lang.String> propertiesOverrideMap()
public java.util.Properties properties()
public java.lang.String propertyValueStringRequired(java.lang.String key)
key
-
public java.lang.String propertyValueString(java.lang.String key, java.lang.String defaultValue)
key
- defaultValue
-
public java.lang.String propertyValueString(java.lang.String key)
key
-
public boolean propertyValueBoolean(java.lang.String key, boolean defaultValue)
key
- defaultValue
-
public boolean containsKey(java.lang.String key)
key
-
public java.lang.Boolean propertyValueBoolean(java.lang.String key)
key
-
public boolean propertyValueBooleanRequired(java.lang.String key)
key
-
public int propertyValueIntRequired(java.lang.String key)
key
-
public int propertyValueInt(java.lang.String key, int defaultValue)
key
- defaultValue
-
public java.lang.Integer propertyValueInt(java.lang.String key)
key
-
public boolean assertPropertyValueRequired(java.lang.String key)
key
-
public boolean assertPropertyValueBoolean(java.lang.String key, boolean required)
key
- required
-
public boolean assertPropertyValueClass(java.lang.String key, java.lang.Class<?> classType, boolean required)
key
- classType
- required
-
public java.util.Map<java.lang.String,java.lang.String> propertiesMap(java.util.regex.Pattern pattern)
pattern
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |