|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.connecterra.ale.dynamicconfig.api.PluginConfig
public abstract class PluginConfig
Models plugin instance in the edge server. Includes:
PluginMeta.Role to which the plugin belongs.
PluginMeta that describes the plugin type.
PluginConfigParameters containing the configuration values.
| Constructor Summary | |
|---|---|
PluginConfig()
|
|
| Method Summary | |
|---|---|
void |
addParameter(PluginConfigParameter pluginConfigParameter)
Adds a PluginConfigParameter representing a configuration parameter value
of the plugin. |
Boolean |
getBooleanValue(String paramKey)
Convenience method to get boolean value of a given parameter. |
abstract String |
getMetaKeyName()
Returns the key name of the PluginMeta that describes the plugin. |
abstract String |
getName()
Returns the name of the plugin instance. |
Long |
getNumericValue(String paramKey)
Convenience method to get long value of a given parameter. |
PluginConfigParameter |
getParameter(String keyName)
Finds and returns PluginConfigParameter with the specified key name. |
List |
getParameterList()
Returns a list of PluginConfigParameter containing the configuration
parameter values for the plugin. |
abstract String |
getRole()
Returns the PluginMeta.Role to which the plugin belongs. |
List |
getStringListValue(String paramKey)
Convenience method to get string list value of a given parameter. |
String |
getStringValue(String paramKey)
Convenience method to get the string value of a given parameter. |
String |
getStringValue(String subConfigKey,
String paramKey)
Convenience method to get the string value of a given parameter within a subconfiguration. |
void |
setParameterList(List parameterList)
Specifies the configuration parameter values of the plugin as a list of PluginConfigParameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginConfig()
| Method Detail |
|---|
public abstract String getName()
public abstract String getRole()
PluginMeta.Role to which the plugin belongs.
PluginMeta.Role to which the plugin belongspublic abstract String getMetaKeyName()
PluginMeta that describes the plugin.
PluginMeta that describes the pluginpublic List getParameterList()
PluginConfigParameter containing the configuration
parameter values for the plugin.
PluginConfigParameter containing the configuration
parameter values for the plugin
public PluginConfigParameter getParameter(String keyName)
throws NoSuchNameException
PluginConfigParameter with the specified key name. This method
only looks at the PluginConfigParameters that are direct children of this PluginConfig;
it will not match the given key with the key names of the descendants that are not
direct children of this PluginConfig.
keyName - the key name of the parameter that is to be found
PluginConfigParameter with matching keyName
NoSuchNameException - if this PluginConfig does not have a parameter with
the given name.public void setParameterList(List parameterList)
PluginConfigParameter.
parameterList - list of PluginConfigParameter containing the parameter
values of the plugin
public void addParameter(PluginConfigParameter pluginConfigParameter)
throws DuplicateNameException
PluginConfigParameter representing a configuration parameter value
of the plugin.
pluginConfigParameter - PluginConfigParameter representing the
configuration parameter value
DuplicateNameException - if a parameter value for the same key name already
existspublic String getStringValue(String paramKey)
PluginConfigParameter.getStringValue() to get the string value of the
parameter if a parameter by the key name exists. If a parameter by the key name
does not exist, this will return null.
This implementation does not return the default value if no value is set on the parameter. The caller must get the default value if needed.
paramKey - key name of the parameter whose string value is to be returned
IllegalStateException - on incorrect value type (non-string)PluginConfigParameter.getStringValue()
public String getStringValue(String subConfigKey,
String paramKey)
getStringValue(String).
subConfigKey - the key name of the sub configuration. If null is passed in,
this will assume no subconfiguration and behave exactly like
getStringValue(String).paramKey - key name of the parameter whose string value is to be returned
IllegalStateException - on incorrect value type (non-string)PluginConfig.getStringValue(String)public Long getNumericValue(String paramKey)
PluginConfigParameter.getNumericValue() to get the long value of the
parameter if a parameter by the key name exists. If a parameter by the key name
does not exist, this will return null.
This implementation does not return the default value if no value is set on the parameter. The caller must get the default value if needed.
paramKey - key name of the parameter whose long value is to be returned
IllegalStateException - on incorrect value type (non-string)
NumberFormatException - if the value contains a string that cannot be
parsed as a longpublic Boolean getBooleanValue(String paramKey)
PluginConfigParameter.getBooleanValue() to get the boolean value of the
parameter if a parameter by the key name exists. If a parameter by the key name
does not exist, this will return null.
This implementation does not return the default value if no value is set on the parameter. The caller must get the default value if needed.
paramKey - key name of the parameter whose long value is to be returned
IllegalStateException - on incorrect value type (non-string) or if the string
value contains anything other than "true" or "false" (case insensitive).public List getStringListValue(String paramKey)
PluginConfigParameter.getStringListValue() to get the string list value from the
parameter if a parameter by the key name exists. If a parameter by the key name
does not exist, this will return null.
This implementation does not return the default value if no value is set on the parameter. The caller must get the default value if needed.
paramKey - key name of the parameter whose list value is to be returned
IllegalStateException - on incorrect value type (not a list with strings)
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||