public class ValidateIntegerRangeFactory extends BaseFactory
{
public ValidatorWrapper create(Annotation annot, Method method)
{
ValidateIntegerRange annotation = (ValidateIntegerRange) annot;
IntegerRangeValidator validator = new IntegerRangeValidator();
validator.setMin(annotation.min());
validator.setMax(annotation.max());
List<Object> parameters = new ArrayList<Object>();
parameters.add(annotation.min());
parameters.add(annotation.max());
return create(validator, annotation.key(), annotation.order(), parameters, method);
}