public interface Configuration
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String key)
Returns the value of the configuration attribute with the given key.
|
String |
getAttribute(String key,
String defaultValue)
Returns the value of the configuration attribute with the given key.
|
boolean |
getAttributeAsBoolean(String key) |
boolean |
getAttributeAsBoolean(String key,
boolean defaultValue) |
int |
getAttributeAsInteger(String key)
Returns the value of the configuration attribute with the given key,
as an integer.
|
int |
getAttributeAsInteger(String key,
int defaultValue)
Returns the value of the configuration attribute with the given key,
as an integer.
|
long |
getAttributeAsLong(String key,
long defaultValue)
Returns the value of the configuration attribute with the given key,
as a long value.
|
Object |
getAttributeAsObject(String key)
Create an object from the given property.
|
Object |
getAttributeAsObject(String key,
String defaultClass) |
List |
getAttributeList(String key)
For a property that has a list of comma-separated values,
this method returns these values as a list of Strings.
|
List |
getAttributeNamesWithPrefix(String string)
return all attribute names that start
with the specified prefix
|
org.slf4j.Logger |
getLogger(String name) |
String |
getLoggerName(Class clazz) |
ORB |
getORB() |
void |
setAttribute(String key,
String value) |
ORB getORB()
org.slf4j.Logger getLogger(String name)
name
- the name of the logger, which also functions
as a log categoryString getAttribute(String key)
String getAttribute(String key, String defaultValue)
int getAttributeAsInteger(String key)
int getAttributeAsInteger(String key, int defaultValue)
long getAttributeAsLong(String key, long defaultValue)
List getAttributeList(String key)
Object getAttributeAsObject(String key) throws ConfigurationException
ConfigurationException
Object getAttributeAsObject(String key, String defaultClass) throws ConfigurationException
ConfigurationException
boolean getAttributeAsBoolean(String key) throws ConfigurationException
ConfigurationException
boolean getAttributeAsBoolean(String key, boolean defaultValue)
Copyright © 2016 JacORB. All rights reserved.