org.apache.tapestry.form.validator
Class ValidatorFactoryImpl

java.lang.Object
  extended by org.apache.tapestry.form.validator.ValidatorFactoryImpl
All Implemented Interfaces:
ValidatorFactory

public class ValidatorFactoryImpl
extends Object
implements ValidatorFactory

Implementation of the tapestry.form.validator.ValidatorFactory service, which builds and caches validators and lists of validators from a "magic" string specification.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
ValidatorFactoryImpl()
           
 
Method Summary
 List constructValidatorList(IComponent component, String specification)
          Constructs a new (immutable) List of Validator, or returns a previously constructed List.
 void setValidators(Map validators)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorFactoryImpl

public ValidatorFactoryImpl()
Method Detail

constructValidatorList

public List constructValidatorList(IComponent component,
                                   String specification)
Description copied from interface: ValidatorFactory
Constructs a new (immutable) List of Validator, or returns a previously constructed List.

Specified by:
constructValidatorList in interface ValidatorFactory
Parameters:
component - the component for which the list is being created
specification - a string identifying which validators and their configuration
Returns:
List of Validator (possibly empty)

setValidators

public void setValidators(Map validators)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.