|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dasein.util.MapLoader<T>
T - the type for elements being loaded by instances of the loaderpublic class MapLoader<T>
Loads objects of a specific class automatically from a Map. The map should
have object attribute names as keys and the values to assign to those keys as
values.
Last modified: $Date: 2006/06/20 20:12:00 $
| Constructor Summary | |
|---|---|
MapLoader(Class<T> cls)
Constructs a loader that will load values into instances of the specified class. |
|
| Method Summary | |
|---|---|
T |
load(Object... args)
Creates a new instance of the class this map loader is governing and loads it with values. |
void |
load(T item,
Map vals)
Loads the specified values into the specified object instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapLoader(Class<T> cls)
cls - the class for which instances will be created and loaded| Method Detail |
|---|
public T load(Object... args)
load in interface CacheLoader<T>args - only one argument is expected, a Map with attribute names
as keys and object values for those attributes as values
null
public void load(T item,
Map vals)
item - the object into which values are being loadedvals - the values to load into the object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||