public class YamlMapFactoryBean extends YamlProcessor implements FactoryBean<Map<String,Object>>
foo:
bar:
one: two
three: four
plus (later in the list)
foo:
bar:
one: 2
five: six
results in an effecive input of
foo:
bar:
one: 2
three: four
five: six
Note that the value of "foo" in the first document is not simply replaced with the
value in the second, but its nested values are merged.YamlProcessor.DocumentMatcher, YamlProcessor.MatchCallback, YamlProcessor.MatchStatus, YamlProcessor.ResolutionMethod| Constructor and Description |
|---|
YamlMapFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setSingleton(boolean singleton)
Set if a singleton should be created, or a new object on each request otherwise.
|
process, setDocumentMatchers, setMatchDefault, setResolutionMethod, setResourcespublic Map<String,Object> getObject()
getObject in interface FactoryBean<Map<String,Object>>public Class<?> getObjectType()
getObjectType in interface FactoryBean<Map<String,Object>>public void setSingleton(boolean singleton)
true (a singleton).public boolean isSingleton()
isSingleton in interface FactoryBean<Map<String,Object>>Copyright © 2015 Pivotal Software, Inc.. All rights reserved.