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 voidcheckForNonExportedLocal(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 voidvalidate(org.apache.commons.configuration2.Configuration configuration)Checks that noJDBC_DATA_SOURCEis 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 ConfigurationExceptionChecks 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, aConfigurationExceptionwill be thrown.
-
validate
protected void validate(org.apache.commons.configuration2.Configuration configuration) throws ConfigurationExceptionChecks that noJDBC_DATA_SOURCEis exported. This does not work sinceConnections are not serialisable.- Overrides:
validatein 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, aConfigurationExceptionwill be thrown.- See Also:
PluginRegistry.ConfigurationValidator.checkAllPluginTypes(Configuration)
-
-