Package org.apache.kerby.config
Interface Config
- All Known Implementing Classes:
Conf,ConfigImpl
public interface Config
Config API to get configuration properties from resources, like XML, Json,
ini, Java Properties and Map. It doesn't support writing back. It allows to
set configuration properties to ease the preparation of a Config.
-
Method Summary
Modifier and TypeMethodDescriptiongetBoolean(String name) getBoolean(String name, Boolean defaultValue) getBoolean(ConfigKey name, boolean useDefault) Class<?>Class<?>Class<?><T> TgetInstance(String name) <T> TgetInstance(String name, Class<T> xface) <T> TgetInstance(ConfigKey name) getNames()getTrimmed(String name) getTrimmed(ConfigKey name) voidsetBoolean(String name, Boolean value) Set a boolean value for the specified propertyvoidsetBoolean(ConfigKey name, Boolean value) Set a boolean value for the specified propertyvoidSet a float value for the specified propertyvoidSet a float value for the specified propertyvoidSet an int value for the specified propertyvoidSet an int value for the specified propertyvoidSet a long value for the specified propertyvoidSet a long value for the specified propertyvoidSet a string value for the specified propertyvoidSet a string value for the specified property
-
Method Details
-
getResource
String getResource() -
getNames
-
getString
-
getString
-
getString
-
setString
Set a string value for the specified property- Parameters:
name- The property namevalue- The string value
-
setString
Set a string value for the specified property- Parameters:
name- The config key namevalue- The string value
-
getTrimmed
-
getTrimmed
-
getBoolean
-
getBoolean
-
getBoolean
-
setBoolean
Set a boolean value for the specified property- Parameters:
name- The property namevalue- The boolean value
-
setBoolean
Set a boolean value for the specified property- Parameters:
name- The config key namevalue- The boolean value
-
getInt
-
getInt
-
getInt
-
setInt
Set an int value for the specified property- Parameters:
name- The property namevalue- The string value
-
setInt
Set an int value for the specified property- Parameters:
name- The config key namevalue- The int value
-
getLong
-
getLong
-
getLong
-
setLong
Set a long value for the specified property- Parameters:
name- The property namevalue- The long value
-
setLong
Set a long value for the specified property- Parameters:
name- The config key namevalue- The long value
-
getFloat
-
getFloat
-
getFloat
-
setFloat
Set a float value for the specified property- Parameters:
name- The property namevalue- The float value
-
setFloat
Set a float value for the specified property- Parameters:
name- The config key namevalue- The float value
-
getList
-
getList
-
getList
-
getConfig
-
getConfig
-
getClass
- Throws:
ClassNotFoundException
-
getClass
- Throws:
ClassNotFoundException
-
getClass
- Throws:
ClassNotFoundException
-
getInstance
- Throws:
ClassNotFoundException
-
getInstance
- Throws:
ClassNotFoundException
-
getInstance
- Throws:
ClassNotFoundException
-