public abstract static class ValueLoader.Base<T> extends Object implements ValueLoader<T>
ValueLoader.Base<T>| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
options |
protected BeanSpec |
spec |
| Constructor and Description |
|---|
Base() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Map options,
BeanSpec spec)
Initialize the value loader with options and bean spec.
|
protected void |
initialized()
Extend class can do further configuration here with all information of options and bean spec has been set.
|
protected <V> V |
value()
Return the
value of the annotation from options map. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic final void init(Map options, BeanSpec spec)
ValueLoaderInitialize the value loader with options and bean spec.
init in interface ValueLoader<T>options - options that could be used to regulate the data loading logicspec - the bean spec about the data to be loadedprotected void initialized()
Extend class can do further configuration here with all information of options and bean spec has been set.
protected <V> V value()
Return the value of the annotation from options map.
V - the generic type of valuenull if not foundCopyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.