Class LocalServiceRegistry.ConfigurationValidator
- java.lang.Object
-
- de.aristaflow.adept2.base.configuration.ConfigurationValidator
-
- de.aristaflow.adept2.base.registry.PluginRegistry.ConfigurationValidator
-
- de.aristaflow.adept2.base.registry.LocalServiceRegistry.ConfigurationValidator
-
- Direct Known Subclasses:
ServiceRegistry.ConfigurationValidator
- Enclosing class:
- LocalServiceRegistry
public static class LocalServiceRegistry.ConfigurationValidator extends PluginRegistry.ConfigurationValidator
Checks the configuration of theServiceRegistry
.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkForNonExportedLocal(org.apache.commons.configuration2.Configuration configuration, String serviceType)
Checks whether the instances of the designated service type are exported or published in the designated properties.protected void
validate(org.apache.commons.configuration2.Configuration configuration)
Checks that noJDBC_DATA_SOURCE
is exported.-
Methods inherited from class de.aristaflow.adept2.base.registry.PluginRegistry.ConfigurationValidator
checkAllPluginTypes, checkPluginDeclaration, checkPluginInstances, checkRuntimePluginDeclaration
-
Methods inherited from class de.aristaflow.adept2.base.configuration.ConfigurationValidator
rebuke, rebukeIllegalValue, rebukeMissingValue
-
-
-
-
Method Detail
-
checkForNonExportedLocal
protected void checkForNonExportedLocal(org.apache.commons.configuration2.Configuration configuration, String serviceType) throws ConfigurationException
Checks whether the instances of the designated service type are exported or published in the designated properties. If so, they will be rebuked.- Parameters:
configuration
- The configuration to check for export or publish properties.serviceType
- The name of the service type to check the instances of.- Throws:
ConfigurationException
- If an instance of the designated service type is exported or published, aConfigurationException
will be thrown.
-
validate
protected void validate(org.apache.commons.configuration2.Configuration configuration) throws ConfigurationException
Checks that noJDBC_DATA_SOURCE
is exported. This does not work sinceConnection
s are not serialisable.- Overrides:
validate
in classPluginRegistry.ConfigurationValidator
- Parameters:
configuration
- The configuration to check for properly configured plugin types.- Throws:
ConfigurationException
- If there are incorrectly configured plugin types in the designated configuration, aConfigurationException
will be thrown.- See Also:
PluginRegistry.ConfigurationValidator.checkAllPluginTypes(Configuration)
-
-