Interface OsgiConfigurationValidator

All Superinterfaces:
Validator

public interface OsgiConfigurationValidator extends Validator
Validator interface for OSGi configurations in any of the serialization formats supported by Sling Configuration Installer Factory.
Since:
3.7.0
  • 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 as Map instead of as Dictionary)
      pid - either the PID or the factory PID of the configuration properties
      subname - 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