Class CompositeContext
- java.lang.Object
-
- com.atlassian.confluence.setup.struts.CompositeContext
-
- All Implemented Interfaces:
org.apache.velocity.context.Context
public class CompositeContext extends Object implements org.apache.velocity.context.Context
Simple immutable composite VelocityContextimplementation that delegates to a collection of other contexts. The order of the contexts is significant as it checks them in iteration order. This context should be wrapped in aVelocityContextor other chained context before use.
-
-
Method Detail
-
containsKey
public boolean containsKey(Object o)
- Specified by:
containsKeyin interfaceorg.apache.velocity.context.Context
-
get
public Object get(String key)
- Specified by:
getin interfaceorg.apache.velocity.context.Context
-
getKeys
public Object[] getKeys()
Union of all keys for all contexts.- Specified by:
getKeysin interfaceorg.apache.velocity.context.Context
-
put
public Object put(String key, Object value)
- Specified by:
putin interfaceorg.apache.velocity.context.Context
-
-