public class ContextRegistry<T extends Context> extends Object
Constructor and Description |
---|
ContextRegistry()
Constructor.
|
ContextRegistry(Map<String,List<T>> registry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
T context)
Adds a context to the registry.
|
boolean |
containsKey(String key)
Returns true if a context exists for
key ; otherwise false. |
List<T> |
get(String key)
Gets a context from the registry.
|
List<T> |
remove(String key)
Remove a context from the registry.
|
int |
size()
Returns the number of keys of the registry.
|
String |
toString() |
public ContextRegistry()
public ContextRegistry(Map<String,List<T>> registry)
registry
- Context registrypublic void add(String key, T context)
key
- Context keycontext
- Contextpublic List<T> get(String key)
key
- Context keypublic boolean containsKey(String key)
key
; otherwise false.key
- Context keypublic List<T> remove(String key)
key
- public int size()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.