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 $
-
-
Field Summary
Fields Modifier and Type Field Description private Introspector
introspector
private java.lang.String
property
-
Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
log
-
-
Constructor Summary
Constructors Constructor Description PutExecutor(Log log, Introspector introspector, java.lang.Class clazz, java.lang.Object arg, java.lang.String property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
discover(java.lang.Class clazz, java.lang.Object arg)
java.lang.Object
execute(java.lang.Object o, java.lang.Object value)
Execute method against context.-
Methods inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
getMethod, isAlive, setMethod
-
-
-
-
Field Detail
-
introspector
private final Introspector introspector
-
property
private final java.lang.String property
-
-
Constructor Detail
-
PutExecutor
public PutExecutor(Log log, Introspector introspector, java.lang.Class clazz, java.lang.Object arg, java.lang.String property)
- Parameters:
log
-introspector
-clazz
-arg
-property
-
-
-
Method Detail
-
discover
protected void discover(java.lang.Class clazz, java.lang.Object arg)
- Parameters:
clazz
-arg
-
-
execute
public java.lang.Object execute(java.lang.Object o, java.lang.Object value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Description copied from class:SetExecutor
Execute method against context.- Specified by:
execute
in classSetExecutor
- Returns:
- The result of the invocation.
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
- See Also:
SetExecutor.execute(java.lang.Object, java.lang.Object)
-
-