public abstract static class ValueLoader.Base<T> extends java.lang.Object implements ValueLoader<T>
ValueLoader.Base<T>| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
options |
protected BeanSpec |
spec |
| Constructor and Description |
|---|
Base() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(java.util.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, waitgetprotected java.util.Map<java.lang.String,java.lang.Object> options
protected BeanSpec spec
public final void init(java.util.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–2017 OSGL (Open Source General Library). All rights reserved.