org.springframework.core.closure.support
Class NoArgBlock
java.lang.Object
org.springframework.core.closure.support.AlgorithmsAccessor
org.springframework.core.closure.support.AbstractClosure
org.springframework.core.closure.support.NoArgBlock
- All Implemented Interfaces:
- Serializable, Closure
public abstract class NoArgBlock
- extends AbstractClosure
Simple implementation of AbstractClosure: makes it easy to just execute a
block of code without any additional parameters.
- See Also:
- Serialized Form
Method Summary |
Object |
call(Object argument)
Evaluate the function with the provided argument, returning the result. |
protected void |
handle()
Block of code to be executed. |
Methods inherited from class org.springframework.core.closure.support.AlgorithmsAccessor |
allTrue, allTrue, anyTrue, anyTrue, findAll, findAll, findFirst, findFirst, forEach, forEach, getAlgorithms |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoArgBlock
public NoArgBlock()
call
public final Object call(Object argument)
- Evaluate the function with the provided argument, returning the result.
- Parameters:
argument
- the argument
- Returns:
- allways
null
, only code is executed.
handle
protected void handle()
- Block of code to be executed. Implement this.
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.