org.springframework.rules.factory
Class Closures

java.lang.Object
  extended by org.springframework.core.closure.support.AlgorithmsAccessor
      extended by org.springframework.rules.factory.Closures

public class Closures
extends AlgorithmsAccessor

A factory for easing the construction and composition of closure (blocks of executable code).

Author:
Keith Donald

Constructor Summary
Closures()
           
 
Method Summary
 Closure chain(Closure[] functionsToChain)
           
 Closure chain(Closure firstFunction, Closure secondFunction)
           
 Closure ifTrue(Constraint constraint, Closure closure)
           
static Closures instance()
           
static void load(Closures sharedInstance)
           
 
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

Closures

public Closures()
Method Detail

instance

public static Closures instance()

load

public static void load(Closures sharedInstance)

chain

public Closure chain(Closure firstFunction,
                     Closure secondFunction)

chain

public Closure chain(Closure[] functionsToChain)

ifTrue

public Closure ifTrue(Constraint constraint,
                      Closure closure)


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