public class BootApplicationConfigurationMetadataResolver extends ApplicationConfigurationMetadataResolver
ApplicationConfigurationMetadataResolver
that knows how to look either
inside Spring Boot uber-jars or an application Container Image's configuration labels.
Supports Boot 1.3 and 1.4+ layouts thanks to a pluggable BootClassLoaderCreation strategy.
Supports Docker and OCI image format for retrieving the metadata.
Constructor and Description |
---|
BootApplicationConfigurationMetadataResolver(ClassLoader parent,
ContainerImageMetadataResolver containerImageMetadataResolver) |
BootApplicationConfigurationMetadataResolver(ContainerImageMetadataResolver containerImageMetadataResolver) |
Modifier and Type | Method and Description |
---|---|
URLClassLoader |
createAppClassLoader(Resource app)
For resolvers that support it, create a new ClassLoader that is able to load
classes for the given app.
|
Map<String,Set<String>> |
listOptionGroups(Resource app)
Return information about option grouping which is coming from an additional
metadata files meant to provide more details which options belong together.
|
Map<String,Set<String>> |
listPortNames(Resource app) |
List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> |
listProperties(org.springframework.boot.loader.archive.Archive archive,
boolean exhaustive) |
List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> |
listProperties(Resource app,
boolean exhaustive)
Return metadata about configuration properties that are documented via
Spring Boot configuration metadata and visible in an app.
|
listProperties
public BootApplicationConfigurationMetadataResolver(ContainerImageMetadataResolver containerImageMetadataResolver)
public BootApplicationConfigurationMetadataResolver(ClassLoader parent, ContainerImageMetadataResolver containerImageMetadataResolver)
public List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> listProperties(Resource app, boolean exhaustive)
listProperties
in class ApplicationConfigurationMetadataResolver
app
- a Spring Cloud Stream app; typically a Boot uberjar, but directories are
supported as wellexhaustive
- return all metadata, including common Spring Boot propertiespublic Map<String,Set<String>> listPortNames(Resource app)
listPortNames
in class ApplicationConfigurationMetadataResolver
public Map<String,Set<String>> listOptionGroups(Resource app)
ApplicationConfigurationMetadataResolver
listOptionGroups
in class ApplicationConfigurationMetadataResolver
app
- the metadata resourcepublic List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> listProperties(org.springframework.boot.loader.archive.Archive archive, boolean exhaustive)
public URLClassLoader createAppClassLoader(Resource app)
ApplicationConfigurationMetadataResolver
createAppClassLoader
in class ApplicationConfigurationMetadataResolver
app
- an app to create a ClassLoader forCopyright © 2024 Pivotal Software, Inc.. All rights reserved.