T
- the type being insertedpublic class KeyContextInsertor<T> extends Object implements ContextInsertor<T>
ContextInsertor
that inserts an object at a specific key.Constructor and Description |
---|
KeyContextInsertor(String key)
Construct to insert at the given key
|
Modifier and Type | Method and Description |
---|---|
void |
insert(T obj,
Context c)
Insert the object into the context
|
public KeyContextInsertor(String key)
key
- the keypublic void insert(T obj, Context c)
ContextInsertor
insert
in interface ContextInsertor<T>
obj
- the objectc
- the context