applyTo

open fun applyTo(environment: ConfigurableEnvironment)

Apply ConfigData post-processing to an existing Environment. This method can be useful when working with an Environment that has been created directly and not necessarily as part of a SpringApplication.

Parameters

environment

the environment to apply ConfigData to


open fun applyTo(environment: ConfigurableEnvironment, resourceLoader: ResourceLoader, bootstrapContext: ConfigurableBootstrapContext, additionalProfiles: Array<String>)
open fun applyTo(environment: ConfigurableEnvironment, resourceLoader: ResourceLoader, bootstrapContext: ConfigurableBootstrapContext, additionalProfiles: Collection<String>)

Apply ConfigData post-processing to an existing Environment. This method can be useful when working with an Environment that has been created directly and not necessarily as part of a SpringApplication.

Parameters

environment

the environment to apply ConfigData to

resourceLoader

the resource loader to use

bootstrapContext

the bootstrap context to use or null to use athrow-away context

additionalProfiles

any additional profiles that should be applied


open fun applyTo(environment: ConfigurableEnvironment, resourceLoader: ResourceLoader, bootstrapContext: ConfigurableBootstrapContext, additionalProfiles: Collection<String>, environmentUpdateListener: ConfigDataEnvironmentUpdateListener)

Apply ConfigData post-processing to an existing Environment. This method can be useful when working with an Environment that has been created directly and not necessarily as part of a SpringApplication.

Parameters

environment

the environment to apply ConfigData to

resourceLoader

the resource loader to use

bootstrapContext

the bootstrap context to use or null to use athrow-away context

additionalProfiles

any additional profiles that should be applied

environmentUpdateListener

optional ConfigDataEnvironmentUpdateListener that can be used to track Environment updates.