This class is the abstract base class for all conventional Velocity Context implementations. Simply extend this class and implement the abstract routines that access your preferred storage method. Takes care of context chaining. Also handles / enforces policy on null keys and values :
- Null keys and values are accepted and basically dropped.
- If you place an object into the context with a null key, it will be ignored and logged.
- If you try to place a null into the context with any key, it will be dropped and logged.
The default implementation of this for application use is org.apache.velocity.VelocityContext. All thanks to Fedor for the chaining idea.
@author
Geir Magnusson Jr.
@author
Fedor Karpelevitch
@author
Jason van Zyl
@version $Id: AbstractContext.java 369043 2006-01-14 16:43:54Z henning $