| Modifier and Type | Method and Description |
|---|---|
Object |
get(Class<?> clazz)
Retrieves an object by its unique key
|
Object |
get(String name)
Retrieves an object by its unique key
|
<T> T |
getAs(Class<T> clazz)
Retrieves an object as an instance of the specified class type.
|
<T> T |
getAs(String name,
Class<T> clazz)
Retrieves an object as an instance of the specified class type.
|
static ContextUtil |
getInstance() |
void |
put(Class<?> clazz,
Object value)
Put some object in the context.
|
void |
put(String name,
Object value)
Put some object in the context.
|
public static ContextUtil getInstance()
public void put(Class<?> clazz, Object value)
Contextpublic void put(String name, Object value)
Contextpublic Object get(Class<?> clazz)
Contextpublic Object get(String name)
Contextpublic <T> T getAs(Class<T> clazz)
ContextCopyright © 2016 Omnia Consulting. All rights reserved.