Java org.springframework.core.env ConfigurableEnvironment fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.core.env ConfigurableEnvironment fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.core.env ConfigurableEnvironment.

The text is from its open source code.

Implementation

org.springframework.core.env.ConfigurableEnvironment has the following implementations.
Click this link to see all its implementation.

Method

booleanacceptsProfiles(String... profiles)
Return whether one or more of the given profiles is active or, in the case of no explicit active profiles, whether one or more of the given profiles is included in the set of default profiles.
voidaddActiveProfile(String profile)
Add a profile to the current set of active profiles.
booleancontainsProperty(String key)
Return whether the given property key is available for resolution, i.e.
String[]getActiveProfiles()
Return the set of profiles explicitly made active for this environment.
ClassgetClass()
Returns the runtime class of this Object .
ConfigurableConversionServicegetConversionService()
Return the ConfigurableConversionService used when performing type conversions on properties.
String[]getDefaultProfiles()
Return the set of profiles to be active by default when no active profiles have been set explicitly.
StringgetProperty(String key)
Return the property value associated with the given key, or null if the key cannot be resolved.
StringgetProperty(String key, String defaultValue)
Return the property value associated with the given key, or defaultValue if the key cannot be resolved.
TgetProperty(String key, Class targetType, T defaultValue)
Return the property value associated with the given key, or defaultValue if the key cannot be resolved.
MutablePropertySourcesgetPropertySources()
Return the PropertySources for this Environment in mutable form, allowing for manipulation of the set of PropertySource objects that should be searched when resolving properties against this Environment object.
inthashCode()
Returns a hash code value for the object.
StringresolvePlaceholders(String text)
Resolve ${...} placeholders in the given text, replacing them with corresponding property values as resolved by #getProperty .
StringresolveRequiredPlaceholders(String text)
Resolve ${...} placeholders in the given text, replacing them with corresponding property values as resolved by #getProperty .
voidsetActiveProfiles(String... profiles)
Specify the set of profiles active for this Environment .
voidsetDefaultProfiles(String... profiles)
Specify the set of profiles to be made active by default if no other profiles are explicitly made active through #setActiveProfiles .