|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.beans.MapToTypeAdapter<T,M>
T - M - public class MapToTypeAdapter<T,M extends Map<Object,Object>>
This class creates a proxy implementation for a given class or interface type which is used as a facade to an underlying Map<String,?>.
newInstance(Map, Class),
TypeToPropertynameMapAdapter| Nested Class Summary | |
|---|---|
protected class |
MapToTypeAdapter.ClassAdapterMethodInterceptor
A MethodInterceptor implementation special for this MapToTypeAdapter |
static interface |
MapToTypeAdapter.UnderlyingMapAware<M extends Map<String,Object>>
This interface makes a derivative type aware of an underlying map implementation. |
| Field Summary | |
|---|---|
protected T |
classAdapter
|
protected boolean |
hasAccessToUnderlyingMap
|
protected Map<Object,Object> |
map
|
| Constructor Summary | |
|---|---|
protected |
MapToTypeAdapter()
|
protected |
MapToTypeAdapter(M map,
Class<? extends T> clazz,
boolean underlyingMapAware)
Internal constructor. |
| Method Summary | ||
|---|---|---|
protected void |
initializeClassAdapter(Class<? extends T> clazz,
boolean underlyingMapAware)
Creates the stub |
|
static
|
newInstance(Map<? super String,Object> map,
Class<? extends T> clazz)
Factory methods to create a new MapToTypeAdapter for a given Map with the given Class as facade. |
|
static
|
newInstance(Map<? super String,Object> map,
Class<? extends T> clazz,
boolean underlyingMapAware)
Factory methods to create a new MapToTypeAdapter for a given Map with the given Class as facade. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<Object,Object> map
protected T classAdapter
protected boolean hasAccessToUnderlyingMap
| Constructor Detail |
|---|
protected MapToTypeAdapter()
newInstance(Map, Class)
protected MapToTypeAdapter(M map,
Class<? extends T> clazz,
boolean underlyingMapAware)
newInstance(Map, Class) instead.
map - clazz - underlyingMapAware - | Method Detail |
|---|
public static <T> T newInstance(Map<? super String,Object> map,
Class<? extends T> clazz,
boolean underlyingMapAware)
MapToTypeAdapter for a given Map with the given Class as facade.
map - clazz - underlyingMapAware - : true > returned stub implements MapToTypeAdapter.UnderlyingMapAware
newInstance(Map, Class)
public static <T> T newInstance(Map<? super String,Object> map,
Class<? extends T> clazz)
MapToTypeAdapter for a given Map with the given Class as facade.
map - clazz -
newInstance(Map, Class, boolean)
protected void initializeClassAdapter(Class<? extends T> clazz,
boolean underlyingMapAware)
clazz - underlyingMapAware -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||