org.springframework.core.closure
Interface Closure

All Known Subinterfaces:
BinaryClosure
All Known Implementing Classes:
AbstractBinaryClosure, AbstractClosure, Block, ClosureChain, FileChecks.FileConverter, IfBlock, Maximum, Minimum, NoArgBlock, StringLength, StringTrimmer, SwingBindingFactory.BeanPropertyEditorClosure

public interface Closure

A function object that evaluates one argument, executing a block of code. It returns a single result.

A closure evaluates a single argument against some expression. For example, a "StringLength" closure might accept any object and return the length of the object's string form.

Author:
Keith Donald

Method Summary
 Object call(Object argument)
          Evaluate the function with the provided argument, returning the result.
 

Method Detail

call

Object call(Object argument)
Evaluate the function with the provided argument, returning the result.

Parameters:
argument - the argument
Returns:
the function return value


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.