public static class PluginRegistry.ConfigurationValidator extends ConfigurationValidator
| Constructor and Description |
|---|
ConfigurationValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAllPluginTypes(Configuration configuration)
Checks whether the designated configuration declares plugin types and if
so, whether they are configured properly, that is all declared plugin
instances have an implementation class or in case of runtime plugins, the
plugin type provides a plugin classpath and a valid anonymous instance.
|
protected void |
checkPluginDeclaration(Configuration configuration,
java.lang.String pluginType,
java.lang.String pluginInstance)
Checks whether there is an implementation configured for the designated
plugin instance.
|
protected void |
checkPluginInstances(Configuration configuration,
java.lang.String pluginType)
Checks whether the instances of the designated plugin type are configured
properly, that is they have an implementation class or in case of runtime
plugins, the plugin type provides a plugin classpath and a valid
anonymous instance.
|
protected void |
checkRuntimePluginDeclaration(Configuration configuration,
java.lang.String pluginType)
Checks whether the designated plugin type declaring runtime plugins ('*')
has a classpath configured.
|
protected void |
validate(Configuration configuration)
Checks whether the designated configuration declares plugin types and if
so, whether they are configured properly, that is all declared plugin
instances have an implementation class or in case of runtime plugins, the
plugin type provides a plugin classpath and a valid anonymous instance.
|
rebuke, rebukeIllegalValue, rebukeMissingValueprotected void checkPluginDeclaration(Configuration configuration, java.lang.String pluginType, java.lang.String pluginInstance) throws ConfigurationException
configuration - The configuration to check for
implementation propertiy for the designated plugin instance.pluginType - The type name of the plugin to check its instance for a
present implementation.pluginInstance - The name of the plugin instance to check for a
present implementation.ConfigurationException - If the designated plugin instance does not
declare a corresponding implementation, a
ConfigurationException will be thrown.protected void checkRuntimePluginDeclaration(Configuration configuration, java.lang.String pluginType) throws ConfigurationException
configuration - The configuration to check for
a plugin classpath property for the designated plugin type.pluginType - The type name of the plugin to check its instance for a
present implementation.ConfigurationException - If the designated plugin type does not
declare a plugin classpath, a
ConfigurationException will be thrown.protected void checkPluginInstances(Configuration configuration, java.lang.String pluginType) throws ConfigurationException
configuration - The configuration to check for properly configured
instances.pluginType - The type name of the plugin to check for properly
configured instances.ConfigurationException - If the instances of the designated plugin
type are not configured properly, a
ConfigurationException will be thrown.protected void checkAllPluginTypes(Configuration configuration) throws ConfigurationException
configuration - The configuration to check for properly configured
plugin types.ConfigurationException - If there are incorrectly configured plugin
types in the designated configuration, a
ConfigurationException will be thrown.protected void validate(Configuration configuration) throws ConfigurationException
validate in class ConfigurationValidatorconfiguration - The configuration to check for properly configured
plugin types.ConfigurationException - If there are incorrectly configured plugin
types in the designated configuration, a
ConfigurationException will be thrown.checkAllPluginTypes(Configuration)