org.keel.servers
Class ComparableContext
java.lang.Object
org.apache.avalon.framework.context.DefaultContext
org.keel.servers.ComparableContext
- All Implemented Interfaces:
- Context
- public class ComparableContext
- extends DefaultContext
- Author:
- Michael Nash A version of Context that implements an equals method, and has the ability to have it's contents extracted into a SequencedHashMap, for serialization purposes (when synchronizing Contexts in a cluster).
| Nested classes inherited from class org.apache.avalon.framework.context.DefaultContext |
|
| Fields inherited from class org.apache.avalon.framework.context.DefaultContext |
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ComparableContext
public ComparableContext()
-
Constructor for ComparableContext.
ComparableContext
public ComparableContext(java.util.Map contextData,
Context parent)
-
Constructor for ComparableContext.
- Parameters:
contextData -
parent -
ComparableContext
public ComparableContext(java.util.Map contextData)
-
Constructor for ComparableContext.
- Parameters:
contextData -
ComparableContext
public ComparableContext(Context parent)
-
Constructor for ComparableContext.
- Parameters:
parent -
put
public void put(java.lang.Object key,
java.lang.Object value)
throws java.lang.IllegalStateException
- Description copied from class:
DefaultContext
-
Helper method fo adding items to Context.
-
- Overrides:
put in class DefaultContext
-
- Parameters:
key - the items key
value - the item
- Throws:
java.lang.IllegalStateException - if context is read only
equals
public boolean equals(java.lang.Object o)
-
toString
public java.lang.String toString()
-
getMap
public SequencedHashMap getMap()
-
putMap
public void putMap(SequencedHashMap sm)
-
Please see keelframework.org for information about new Keel releases.