Class ServiceRegistry.ConfigurationValidator
- java.lang.Object
-
- de.aristaflow.adept2.base.configuration.ConfigurationValidator
-
- de.aristaflow.adept2.base.registry.PluginRegistry.ConfigurationValidator
-
- de.aristaflow.adept2.base.registry.LocalServiceRegistry.ConfigurationValidator
-
- de.aristaflow.adept2.base.registry.ServiceRegistry.ConfigurationValidator
-
- Enclosing class:
- ServiceRegistry
public static class ServiceRegistry.ConfigurationValidator extends LocalServiceRegistry.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 List<String>
checkLicenceManager(org.apache.commons.configuration2.Configuration configuration)
Checks the designated configuration for the licence manager.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.LocalServiceRegistry.ConfigurationValidator
checkForNonExportedLocal
-
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
-
checkLicenceManager
protected List<String> checkLicenceManager(org.apache.commons.configuration2.Configuration configuration) throws ConfigurationException
Checks the designated configuration for the licence manager. If there is an implementation specified, there must not be any declared instances and it must not be a private remote service. It should be published (and also exported).- Parameters:
configuration
- The configuration which to check for a valid licence manager configuration.- Returns:
- The instance names of all communication services the licence
manager is to be exported with or
null
in case the licence manager is not exported (rather rare). - Throws:
ConfigurationException
- If the licence manager is published but not exported, a private remote service or there are instances declared, aConfigurationException
will be thrown.
-
validate
protected void validate(org.apache.commons.configuration2.Configuration configuration) throws ConfigurationException
Description copied from class:LocalServiceRegistry.ConfigurationValidator
Checks that noJDBC_DATA_SOURCE
is exported. This does not work sinceConnection
s are not serialisable.- Overrides:
validate
in classLocalServiceRegistry.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)
-
-