Class ApplicationConfigurationMetadataResolver

java.lang.Object
org.springframework.cloud.dataflow.configuration.metadata.ApplicationConfigurationMetadataResolver
Direct Known Subclasses:
BootApplicationConfigurationMetadataResolver

public abstract class ApplicationConfigurationMetadataResolver extends Object
Used to retrieve metadata about the configuration properties that can alter an application's behavior.
Author:
Eric Bottard
  • Constructor Details

    • ApplicationConfigurationMetadataResolver

      public ApplicationConfigurationMetadataResolver()
  • Method Details

    • listProperties

      public List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> listProperties(Resource metadataResource)
    • createAppClassLoader

      public URLClassLoader createAppClassLoader(Resource app)
      For resolvers that support it, create a new ClassLoader that is able to load classes for the given app. The default implementation returns an empty classloader
      Parameters:
      app - an app to create a ClassLoader for
      Returns:
      a new ClassLoader. Callers are responsible for closing the returned class loader.
    • listProperties

      public abstract List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> listProperties(Resource metadataResource, boolean exhaustive)
      Return metadata about configuration properties that are documented via Spring Boot configuration metadata and visible in an app.
      Parameters:
      metadataResource - the metadata file that contains app specific configuration properties. Typically a JAR file containing the configuration metadata files or the app that includes metadata files as well.
      exhaustive - return all metadata, including common Spring Boot properties
      Returns:
      the list of configuration metdata properties
    • listPortNames

      public abstract Map<String,Set<String>> listPortNames(Resource metadataResource)
    • listOptionGroups

      public abstract Map<String,Set<String>> listOptionGroups(Resource metadataResource)
      Return information about option grouping which is coming from an additional metadata files meant to provide more details which options belong together. Keys in a map are arbitrary id's and values a full options id's.
      Parameters:
      metadataResource - the metadata resource
      Returns:
      map of option groups