org.springframework.core.closure.support
Class NoArgBlock

java.lang.Object
  extended by org.springframework.core.closure.support.AlgorithmsAccessor
      extended by org.springframework.core.closure.support.AbstractClosure
          extended by 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

Constructor Summary
NoArgBlock()
           
 
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.AbstractClosure
forEach, forEach
 
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
 

Constructor Detail

NoArgBlock

public NoArgBlock()
Method Detail

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.