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 the
ServiceRegistry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckForNonExportedLocal(Configuration configuration, String serviceType) Checks whether the instances of the designated service type are exported or published in the designated properties.protected voidvalidate(Configuration configuration) Checks that noJDBC_DATA_SOURCEis exported.Methods 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
-
checkForNonExportedLocal
protected void checkForNonExportedLocal(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, aConfigurationExceptionwill be thrown.
-
validate
Checks 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:
-