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

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

Introduction

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

The text is from its open source code.

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.
booleanacceptsProfiles(Profiles profiles)
Return whether the #getActiveProfiles() active profiles match the given Profiles predicate.
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 .
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.
StringgetRequiredProperty(String key)
Return the property value associated with the given key (never null ).
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 .