public class CExtContext extends Object
CExtManager. Users of extensions are asked to provide
specific information how and for which purpose they intend to use the requested extension. Implementers of
CExtProvider may in turn decide on basis of the given context object which implementation to provide or
whether to provide an implementation at all. This context is backed by a HashMap. Thus the behavior of the
operations of this class are the same as their HashMap equivalents (if applicable).CExtManager,
CExtProvider,
HashMap| Modifier and Type | Field and Description |
|---|---|
static String |
CTX_REFERENCE
Constant that shall be used as key to put a reference object.
|
| Constructor and Description |
|---|
CExtContext()
Creates a new CExtContext object.
|
CExtContext(String key,
Object value)
Creates a new CExtContext object and put the given object in the property map.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clearProperty(String key)
Removes the
value for the specified key from this map. |
Object |
getProperty(String key)
Get the associated
value for the specified key. |
Map<String,Object> |
getPropertyBag()
Return the whole backing map implementation.
|
Object |
putProperty(String key,
Object value)
Appends the specified
key with the specified mapping value to the
propertyBag. |
public static final String CTX_REFERENCE
public Object putProperty(String key, Object value)
key with the specified mapping value to the
propertyBag. If the specified key already has an associated value, this
value would get removed by the specified valuekey - the key for the given valuevalue - the value for the given keykey, or null if there was no mapping for
the specified key.Map.put(java.lang.Object, java.lang.Object)public Object getProperty(String key)
value for the specified key.key - the key, whose mapping is searchedvalue for the specified key, or null if there was no mapping
for the specified key.Map.get(java.lang.Object)public Map<String,Object> getPropertyBag()
public Object clearProperty(String key)
value for the specified key from this map.key - the key, whose mapping is removedvalue, which is removedMap.remove(java.lang.Object)Copyright © 2012–2026 cismet GmbH. All rights reserved.