public class AutoConfigurationItemProperties extends Object
ConfigurationItemProducer
as producer for ConfigurationItem
wrappers which holds service
to manage items on-the-fly.
Configuration exposes default implementation of contract service ConfigurationService
to operate
with ConfigurationItem
. It uses Environment
as system parameter repository, but it is possible
to override with custom implementation.
ConversionService
Constructor and Description |
---|
AutoConfigurationItemProperties() |
Modifier and Type | Method and Description |
---|---|
org.springframework.beans.factory.config.BeanPostProcessor |
configurationItemProducer()
Create
BeanPostProcessor that catch fields with ConfigurableValue and process them with value. |
ConfigurationService |
configurationService(org.springframework.core.env.Environment environment)
Creates default
ConfigurationService implementation that use Environment to operate
with configuration parameters. |
@Bean public org.springframework.beans.factory.config.BeanPostProcessor configurationItemProducer()
BeanPostProcessor
that catch fields with ConfigurableValue
and process them with value.@Bean @ConditionalOnMissingBean public ConfigurationService configurationService(org.springframework.core.env.Environment environment)
ConfigurationService
implementation that use Environment
to operate
with configuration parameters.environment
- that representsConfigurationService
implementation as proxy of Environment
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.