com.miginfocom.property
Class ValidatorFactory

java.lang.Object
  extended by com.miginfocom.property.ValidatorFactory

public class ValidatorFactory
extends java.lang.Object

A factory for validators. Will be quired for every new property field encountered.

A validator factory must always have a public no-args constructor so that ir can be referenced by the ValidatorFactoryClass annotation.


Constructor Summary
ValidatorFactory()
           
 
Method Summary
 java.util.List<Validator> create(java.lang.reflect.Field propertyField)
          Creates validators for the field or returns null if none should be created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorFactory

public ValidatorFactory()
Method Detail

create

public java.util.List<Validator> create(java.lang.reflect.Field propertyField)
Creates validators for the field or returns null if none should be created.

Parameters:
propertyField - The field that points to the property. Can be used to read declared property class type, including generic arguments, and annotations.
Returns:
The validators or null.


Copyright © 2007 MiG InfoCom AB. All Rights Reserved.