org.apache.tapestry.valid
Class ValidatorBindingFactory
java.lang.Object
org.apache.tapestry.valid.ValidatorBindingFactory
- All Implemented Interfaces:
- BindingFactory
public class ValidatorBindingFactory
- extends java.lang.Object
- implements BindingFactory
Uses the tapestry.valid.ValidatorBeanFactory service to obtain configuration IValidator
instances.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
- See Also:
ValidatorBinding
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidatorBindingFactory
public ValidatorBindingFactory()
setValidatorBeanFactory
public void setValidatorBeanFactory(org.apache.hivemind.lib.BeanFactory validatorBeanFactory)
setValueConverter
public void setValueConverter(ValueConverter valueConverter)
createBinding
public IBinding createBinding(IComponent root,
java.lang.String bindingDescription,
java.lang.String path,
org.apache.hivemind.Location location)
- Creates and returns a
ValidatorBinding
. Interprets the path as a bean initializer,
used to locate a particular type of validator and a particular configuration of its
properties.
- Specified by:
createBinding
in interface BindingFactory
- Parameters:
root
- the component that is the source of properties or messages (or etc.). When the
path is "evaluated", the root component provides a context.path
- The path used to get (or update) a value for the path. This may be an OGNL
expression, a message key, a literal value, or otherwise defined by the type of
binding. It is the value of the binding reference with the prefix (used to
identify the factory) stripped off.location
- The location of the binding, used to report any errors related to the binding, or
to the component parameter the binding is bound to.