org.apache.velocity.tools.view.tools
Class ContextTool
java.lang.Object
org.apache.velocity.tools.generic.SafeConfig
org.apache.velocity.tools.generic.ContextTool
org.apache.velocity.tools.view.ViewContextTool
org.apache.velocity.tools.view.tools.ContextTool
Deprecated.
@Deprecated
public class ContextTool
- extends ViewContextTool
Use ViewContextTool
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OLD_SAFE_MODE_KEY
@Deprecated
public static final String OLD_SAFE_MODE_KEY
- Deprecated.
- See Also:
- Constant Field Values
ContextTool
public ContextTool()
- Deprecated.
init
@Deprecated
public void init(Object obj)
- Deprecated.
configure
public void configure(Map params)
- Deprecated.
- Description copied from class:
SafeConfig
- If
SafeConfig.isConfigLocked()
returns true
, then this method
does nothing; otherwise, if false
, this will create a new
ValueParser
from the specified Map of params and call
SafeConfig.configure(ValueParser)
with it. Then this will check
the parameters itself to find out whether or not the configuration
for this tool should be put into safe mode or have its config locked.
The safe mode value should be a boolean under the key
SafeConfig.SAFE_MODE_KEY
and the lock value should be a boolean
under the key SafeConfig.LOCK_CONFIG_KEY
.
- Overrides:
configure
in class SafeConfig
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.