Interface OsgiConfigurationValidator
- All Superinterfaces:
Validator
Validator interface for OSGi configurations in any of the serialization formats supported by
Sling Configuration Installer Factory.
- Since:
- 3.7.0
-
Method Summary
Modifier and TypeMethodDescription@Nullable Collection<ValidationMessage>validateConfig(@NotNull Map<String, Object> config, @NotNull String pid, @Nullable String subname, @NotNull String nodePath) Called for each serialized OSGi configuration found in the content package.
-
Method Details
-
validateConfig
@Nullable @Nullable Collection<ValidationMessage> validateConfig(@NotNull @NotNull Map<String, Object> config, @NotNull @NotNull String pid, @Nullable @Nullable String subname, @NotNull @NotNull String nodePath) Called for each serialized OSGi configuration found in the content package.- Parameters:
config- the deserialized configuration properties as defined in OSGi Config Admin Service Specification, $104.4.3 (but asMapinstead of asDictionary)pid- either the PID or the factory PID of the configuration propertiessubname- either null (for regular PID) or the alias (for factory PID configurations)nodePath- the repository path of the node which contains the given OSGi configuration- Returns:
- validation messages or
null
-