public class ValidatePatternFactory extends BaseFactory
{
public ValidatorWrapper create(Annotation annot, Method method)
{
ValidatePattern annotation = (ValidatePattern) annot;
PatternValidator validator = new PatternValidator(annotation.pattern());
List<Object> parameters = new ArrayList<Object>();
parameters.add(annotation.pattern());
return create(validator, annotation.key(), annotation.order(), parameters, method);
}