public class ContextWrapper
extends java.lang.Object
implements org.apache.commons.chain.Context
Provide a base class for any Context Implementation which is primarily intended for use in a subchain.
Classes which extend
ContextWrapper may implement typesafe property methods which
also leave their values in the underlying context.
| Constructor and Description |
|---|
ContextWrapper(org.apache.commons.chain.Context context)
Instantiate object as a composite around the given Context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object o) |
boolean |
containsValue(java.lang.Object o) |
java.util.Set |
entrySet() |
java.lang.Object |
get(java.lang.Object key) |
protected org.apache.commons.chain.Context |
getBaseContext()
Provide the underlying Context for this composite.
|
boolean |
isEmpty() |
java.util.Set |
keySet() |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map map) |
java.lang.Object |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection |
values() |
public ContextWrapper(org.apache.commons.chain.Context context)
Instantiate object as a composite around the given Context.
context - Context instance to wrapprotected org.apache.commons.chain.Context getBaseContext()
public java.util.Set entrySet()
entrySet in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Mappublic void clear()
clear in interface java.util.Mappublic void putAll(java.util.Map map)
putAll in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mappublic boolean containsValue(java.lang.Object o)
containsValue in interface java.util.Mappublic boolean containsKey(java.lang.Object o)
containsKey in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic int size()
size in interface java.util.MapCopyright © 2000–2024 Apache Software Foundation. All rights reserved.