public interface IsisConfiguration extends DebuggableWithTitle, Injectable, Iterable<String>
The IsisConfiguration is one part of a mutable/immutable pair pattern
(cf String and StringBuilder). What this means is, as
components are loaded they can discover their own configuration resources.
These are added to IsisConfigurationBuilder.
Thus the IsisConfiguration held by different components may vary, but
with each being a possible superset of the previous.
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
asMap()
A mutable copy of the current set of properties (name/values) held in this configuration.
|
IsisConfiguration |
createSubset(String prefix)
Creates a new IsisConfiguration containing the properties starting with
the specified prefix.
|
boolean |
getBoolean(String name)
Gets the boolean value for the specified name where no value or 'on' will
result in true being returned; anything gives false.
|
boolean |
getBoolean(String name,
boolean defaultValue)
Gets the boolean value for the specified name.
|
Color |
getColor(String name)
Gets the color for the specified name.
|
Color |
getColor(String name,
Color defaultValue)
Gets the color for the specified name.
|
Font |
getFont(String name)
Gets the font for the specified name.
|
Font |
getFont(String name,
Font defaultValue)
Gets the font for the specified name.
|
int |
getInteger(String name)
Gets the number value for the specified name.
|
int |
getInteger(String name,
int defaultValue)
Gets the number value for the specified name.
|
String[] |
getList(String name)
Returns a list of entries for the single configuration property with the
specified name.
|
IsisConfiguration |
getProperties(String withPrefix)
Creates a new IsisConfiguration containing the properties starting with
the specified prefix.
|
ResourceStreamSource |
getResourceStreamSource()
The
ResourceStreamSource that was used to build this
configuration. |
String |
getString(String name)
Returns the configuration property with the specified name.
|
String |
getString(String name,
String defaultValue) |
boolean |
hasProperty(String name) |
boolean |
isEmpty() |
Iterator<String> |
iterator()
Iterates over the property names of this configuration.
|
int |
size() |
debugTitledebugDatainjectIntoIsisConfiguration createSubset(String prefix)
getProperties(String)
method, except the property names have their prefixes removed.getProperties(String)boolean getBoolean(String name)
name - the property nameboolean getBoolean(String name, boolean defaultValue)
name - the property namedefaultValue - the value to use as a defaultColor getColor(String name)
name - the property nameColor getColor(String name, Color defaultValue)
name - the property namedefaultValue - the value to use as a defaultFont getFont(String name)
name - the property nameFont getFont(String name, Font defaultValue)
name - the property namedefaultValue - the color to use as a defaultString[] getList(String name)
If there is no matching property then returns an empty array.
int getInteger(String name)
name - the property nameint getInteger(String name, int defaultValue)
name - the property namedefaultValue - the value to use as a defaultIsisConfiguration getProperties(String withPrefix)
createSubset(String) method except the names of the
properties are not altered when copied.createSubset(String)String getString(String name)
boolean hasProperty(String name)
boolean isEmpty()
int size()
ResourceStreamSource getResourceStreamSource()
ResourceStreamSource that was used to build this
configuration.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.