Top Description Interfaces Classes
[default module]

Package org.springframework.core.env

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Spring's environment abstraction consisting of bean definition profile and hierarchical property source support.

Interface Summary

Modifier and TypeInterface and Description
public interface
ConfigurableEnvironment

Configuration interface to be implemented by most if not all Environment types.

public interface
ConfigurablePropertyResolver

Configuration interface to be implemented by most if not all PropertyResolver types.

public interface
Environment

Interface representing the environment in which the current application is running.

public interface
EnvironmentCapable

Interface indicating a component that contains and exposes an Environment reference.

public interface
Profiles

Profile predicate that may be accepted by an Environment.

public interface
PropertyResolver

Interface for resolving properties against any underlying source.

public interface
PropertySources

Holder containing one or more PropertySource objects.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractEnvironment

Abstract base class for Environment implementations.

public abstract class
AbstractPropertyResolver

Abstract base class for resolving properties against any underlying source.

pack-priv class
CommandLineArgs

A simple representation of command line arguments, broken into "option arguments" and "non-option arguments".

public abstract class
CommandLinePropertySource<
the source type
T
>

Abstract base class for PropertySource implementations backed by command line arguments.

public class
CompositePropertySource

Composite PropertySource implementation that iterates over a set of PropertySource instances.

public abstract class
EnumerablePropertySource<
the source type
T
>

A PropertySource implementation capable of interrogating its underlying source object to enumerate all possible property name/value pairs.

public class
JOptCommandLinePropertySource

Deprecated since 6.1. since 6.1 with no plans for a replacement
CommandLinePropertySource implementation backed by a JOpt OptionSet.
public class
MapPropertySource

PropertySource that reads keys and values from a Map object.

public class
MissingRequiredPropertiesException

Exception thrown when required properties are not found.

public class
MutablePropertySources

The default implementation of the PropertySources interface.

pack-priv class
ProfilesParser

Internal parser used by Profiles#of.

public class
PropertiesPropertySource

PropertySource implementation that extracts properties from a java.util.Properties object.

public abstract class
PropertySource<
the source type
T
>

Abstract base class representing a source of name/value property pairs.

public class
PropertySourcesPropertyResolver

PropertyResolver implementation that resolves property values against an underlying set of PropertySources.

pack-priv class
SimpleCommandLineArgsParser

Parses a String[] of command line arguments in order to populate a CommandLineArgs object.

public class
SimpleCommandLinePropertySource

CommandLinePropertySource implementation backed by a simple String array.

public class
StandardEnvironment

Environment implementation suitable for use in 'standard' (i.e. non-web) applications.

public class