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 the
ServiceRegistry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckLicenceManager(Configuration configuration) Checks the designated configuration for the licence manager.protected voidvalidate(Configuration configuration) Checks that noJDBC_DATA_SOURCEis exported.Methods inherited from class de.aristaflow.adept2.base.registry.LocalServiceRegistry.ConfigurationValidator
checkForNonExportedLocalMethods inherited from class de.aristaflow.adept2.base.registry.PluginRegistry.ConfigurationValidator
checkAllPluginTypes, checkPluginDeclaration, checkPluginInstances, checkRuntimePluginDeclarationMethods inherited from class de.aristaflow.adept2.base.configuration.ConfigurationValidator
rebuke, rebukeIllegalValue, rebukeMissingValue
-
Constructor Details
-
ConfigurationValidator
public ConfigurationValidator()
-
-
Method Details
-
checkLicenceManager
protected List<String> checkLicenceManager(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
nullin 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, aConfigurationExceptionwill be thrown.
-
validate
Description copied from class:LocalServiceRegistry.ConfigurationValidatorChecks that noJDBC_DATA_SOURCEis exported. This does not work sinceConnections are not serialisable.- Overrides:
validatein 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, aConfigurationExceptionwill be thrown.- See Also:
-