public class PropertiesBridge extends Object
Spring Environment
provides access to properties according to the
current environment. But it doesn't provide any way to access all properties.
This bridge converts Spring Environment
into Properties
.
Constructor and Description |
---|
PropertiesBridge() |
Modifier and Type | Method and Description |
---|---|
Properties |
convert(org.springframework.core.env.Environment env)
Convert the environment to properties.
|
public Properties convert(org.springframework.core.env.Environment env)
ConfigurableEnvironment
and with PropertySource
s that
implement EnumerablePropertySource
.env
- the environment that handles properties in SpringCopyright © 2017. All rights reserved.