public abstract class ConfigurationValueLoader<T> extends ValueLoader.Base<T>
Load value from configuration source
ValueLoader.Base<T>
Modifier and Type | Field and Description |
---|---|
protected String |
defaultValue |
options, spec
Constructor and Description |
---|
ConfigurationValueLoader() |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
conf(String key,
String defaultValue)
Return whatever configured by
key |
protected String |
defaultValue()
Returns the default value set to
@Configuration |
T |
get()
Provide element data to be loaded using the options and bean spec initialized by
ValueLoader.init(Map, BeanSpec) . |
protected void |
initialized()
Extend class can do further configuration here with all information of options and bean spec has been set.
|
init, value
protected String defaultValue
protected void initialized()
ValueLoader.Base
Extend class can do further configuration here with all information of options and bean spec has been set.
initialized
in class ValueLoader.Base<T>
public T get()
ValueLoader
Provide element data to be loaded using the options and bean spec initialized by ValueLoader.init(Map, BeanSpec)
.
Iterable
of elementsprotected final String defaultValue()
Returns the default value set to @Configuration
Copyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.