Profiles

open class Profiles : Iterable<T>

Provides access to environment profiles that have either been set directly on the Environment or will be set based on configuration data property values.

Author

Phillip Webb

Madhura Bhave

Since

2.4.0

Properties

Link copied to clipboard
val INCLUDE_PROFILES_PROPERTY_NAME: String = "spring.profiles.include"
Name of property to set to specify additionally included active profiles.

Functions

Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
open fun getAccepted(): List<String>
Return the accepted profiles.
Link copied to clipboard
open fun getActive(): List<String>
Return the active profiles.
Link copied to clipboard
open fun getDefault(): List<String>
Return the default profiles.
Link copied to clipboard
open fun isAccepted(profile: String): Boolean
Return if the given profile is active.
Link copied to clipboard
open fun iterator(): Iterator<String>
Return an iterator for all accepted profiles.
Link copied to clipboard
Link copied to clipboard
open fun toString(): String