org.apache.velocity.runtime.parser.node
Class PutExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.SetExecutor
org.apache.velocity.runtime.parser.node.PutExecutor
public class PutExecutor
- extends SetExecutor
Executor that simply tries to execute a put(key, value)
operation. This will try to find a put(key) method
for any type of object, not just objects that
implement the Map interface as was previously
the case.
- Since:
- 1.5
- Version:
- $Id: PutExecutor.java 687177 2008-08-19 22:00:32Z nbubna $
- Author:
- Jason van Zyl, Henning P. Schmiedehausen
Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor |
log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PutExecutor
public PutExecutor(Log log,
Introspector introspector,
Class clazz,
Object arg,
String property)
- Parameters:
log
- introspector
- clazz
- arg
- property
-
discover
protected void discover(Class clazz,
Object arg)
- Parameters:
clazz
- arg
-
execute
public Object execute(Object o,
Object value)
throws IllegalAccessException,
InvocationTargetException
- Description copied from class:
SetExecutor
- Execute method against context.
- Specified by:
execute
in class SetExecutor
- Returns:
- The result of the invocation.
- Throws:
IllegalAccessException
InvocationTargetException
- See Also:
SetExecutor.execute(java.lang.Object, java.lang.Object)
Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.