T - the generic element typepublic interface ValueLoader<T>
extends javax.inject.Provider<T>
An ValueLoader is used to load bean (value) in place. This could be used to load simple values like int, String etc. It can also be used by container to load complex object marshaled from wire, e.g. a post request data
| Modifier and Type | Interface and Description |
|---|---|
static class |
ValueLoader.Base<T> |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Provide element data to be loaded using the options and bean spec initialized by
init(Map, BeanSpec). |
void |
init(Map<String,Object> options,
BeanSpec spec)
Initialize the value loader with options and bean spec.
|
void init(Map<String,Object> options, BeanSpec spec)
Initialize the value loader with options and bean spec.
options - options that could be used to regulate the data loading logicspec - the bean spec about the data to be loadedT get()
Provide element data to be loaded using the options and bean spec initialized by init(Map, BeanSpec).
Copyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.