Class ApplicationConfigurationMetadataResolver
java.lang.Object
org.springframework.cloud.dataflow.configuration.metadata.ApplicationConfigurationMetadataResolver
- Direct Known Subclasses:
BootApplicationConfigurationMetadataResolver
Used to retrieve metadata about the configuration properties that can alter an
application's behavior.
- Author:
- Eric Bottard
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFor resolvers that support it, create a new ClassLoader that is able to load classes for the given app.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.listPortNames
(Resource metadataResource) List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty>
listProperties
(Resource metadataResource) 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.
-
Constructor Details
-
ApplicationConfigurationMetadataResolver
public ApplicationConfigurationMetadataResolver()
-
-
Method Details
-
listProperties
-
createAppClassLoader
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
-
listOptionGroups
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
-