org.apache.axis2.context
Class AbstractContext
java.lang.Object
org.apache.axis2.context.AbstractContext
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ConfigurationContext, MessageContext, OperationContext, ServiceContext, ServiceGroupContext, SessionContext
- public abstract class AbstractContext
- extends java.lang.Object
- implements java.io.Serializable
This is the topmost level of the Context hierachy, is potentially a bag of
properties.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nonPersistentMap
protected transient java.util.HashMap nonPersistentMap
persistentMap
protected final java.util.HashMap persistentMap
parent
protected AbstractContext parent
AbstractContext
protected AbstractContext(AbstractContext parent)
init
public abstract void init(AxisConfiguration axisConfiguration)
throws AxisFault
- Throws:
AxisFault
setProperty
public void setProperty(java.lang.String key,
java.lang.Object value,
boolean persistent)
- Store an object. depending on the persistent flag the
object is either saved in the persistent way or the non-persistent
way
- Parameters:
key
- value
- persistent
-
setProperty
public void setProperty(java.lang.String key,
java.lang.Object value)
- Store an object with the default persistent flag.
default is no persistance
- Parameters:
key
- value
-
getProperty
public java.lang.Object getProperty(java.lang.String key)
- Retrieve an object. Default search is done in the non persistent
group
- Parameters:
key
-
- Returns:
getProperty
public java.lang.Object getProperty(java.lang.String key,
boolean persistent)
- Parameters:
key
- persistent
-
- Returns:
setParent
public void setParent(AbstractContext context)
- Parameters:
context
-
getParent
public AbstractContext getParent()
- Returns:
getNonPersistentMap
public java.util.HashMap getNonPersistentMap()
getPersistentMap
public java.util.HashMap getPersistentMap()