|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.server.configuration.plugins.ConfigurationPlugin
public abstract class ConfigurationPlugin
Field Summary | |
---|---|
protected Configuration |
_configuration
|
protected static org.apache.log4j.Logger |
_logger
|
Constructor Summary | |
---|---|
ConfigurationPlugin()
|
Method Summary | ||
---|---|---|
void |
addConfiguration(ConfigurationPlugin configuration)
Given another configuration merge the configuration into our own config The new values being merged in will take precedence over existing values. |
|
protected boolean |
contains(String property)
|
|
protected boolean |
containsBoolean(String property)
|
|
protected boolean |
containsInt(String property)
|
|
protected boolean |
containsLong(String property)
|
|
protected boolean |
containsPositiveLong(String property)
|
|
String |
formatToString()
|
|
protected boolean |
getBooleanValue(String property)
|
|
protected boolean |
getBooleanValue(String property,
boolean defaultValue)
|
|
Configuration |
getConfig()
|
|
|
getConfiguration(String plugin)
|
|
protected double |
getDoubleValue(String property)
|
|
protected double |
getDoubleValue(String property,
double defaultValue)
|
|
abstract String[] |
getElementsProcessed()
The Elements that this Plugin can process. |
|
protected int |
getIntValue(String property)
|
|
protected int |
getIntValue(String property,
int defaultValue)
|
|
protected List |
getListValue(String property)
|
|
protected List |
getListValue(String property,
List defaultValue)
|
|
protected long |
getLongValue(String property)
|
|
protected long |
getLongValue(String property,
long defaultValue)
|
|
protected String |
getStringValue(String property)
|
|
protected String |
getStringValue(String property,
String defaultValue)
|
|
protected boolean |
hasConfiguration()
|
|
protected void |
mergeConfiguration(ConfigurationPlugin configuration)
|
|
void |
setConfiguration(String path,
Configuration configuration)
Sets the configuration for this plugin |
|
static void |
showKeys(Configuration config)
Helper method to print out list of keys in a Configuration . |
|
String |
toString()
|
|
void |
validateConfiguration()
Performs configuration validation. |
|
protected void |
validatePositiveLong(String property)
Provide mechanism to validate Configuration contains a Postiive Long Value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger _logger
protected Configuration _configuration
Constructor Detail |
---|
public ConfigurationPlugin()
Method Detail |
---|
public abstract String[] getElementsProcessed()
public void validateConfiguration() throws ConfigurationException
ConfigurationException
public Configuration getConfig()
public <C extends ConfigurationPlugin> C getConfiguration(String plugin)
public void setConfiguration(String path, Configuration configuration) throws ConfigurationException
path
- configuration
- the configuration for this plugin.
ConfigurationException
public static final void showKeys(Configuration config)
Configuration
.
protected boolean hasConfiguration()
protected double getDoubleValue(String property)
protected double getDoubleValue(String property, double defaultValue)
protected long getLongValue(String property)
protected long getLongValue(String property, long defaultValue)
protected int getIntValue(String property)
protected int getIntValue(String property, int defaultValue)
protected String getStringValue(String property)
protected String getStringValue(String property, String defaultValue)
protected boolean getBooleanValue(String property)
protected boolean getBooleanValue(String property, boolean defaultValue)
protected List getListValue(String property)
protected List getListValue(String property, List defaultValue)
protected boolean contains(String property)
protected void validatePositiveLong(String property) throws ConfigurationException
property
-
ConfigurationException
protected boolean containsLong(String property)
protected boolean containsPositiveLong(String property)
protected boolean containsInt(String property)
protected boolean containsBoolean(String property)
public void addConfiguration(ConfigurationPlugin configuration)
configuration
- the config to merge in to our own.protected void mergeConfiguration(ConfigurationPlugin configuration)
public String toString()
toString
in class Object
public String formatToString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |