public class BootApplicationConfigurationMetadataResolver extends ApplicationConfigurationMetadataResolver
ApplicationConfigurationMetadataResolver
that knows how to look inside
Spring Boot uber-jars.
Supports Boot 1.3 and 1.4+ layouts thanks to a pluggable BootClassLoaderCreation strategy.
Constructor and Description |
---|
BootApplicationConfigurationMetadataResolver() |
BootApplicationConfigurationMetadataResolver(ClassLoader parent) |
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()
public BootApplicationConfigurationMetadataResolver(ClassLoader parent)
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.