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(org.springframework.core.io.Resource app)
For resolvers that support it, create a new ClassLoader that is able to load
classes for the given app.
|
List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> |
listProperties(org.springframework.boot.loader.archive.Archive archive,
boolean exhaustive) |
List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> |
listProperties(org.springframework.core.io.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(org.springframework.core.io.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 List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> listProperties(org.springframework.boot.loader.archive.Archive archive, boolean exhaustive)
public URLClassLoader createAppClassLoader(org.springframework.core.io.Resource app)
ApplicationConfigurationMetadataResolver
createAppClassLoader
in class ApplicationConfigurationMetadataResolver
app
- an app to create a ClassLoader forCopyright © 2020 Pivotal Software, Inc.. All rights reserved.