rewrite-impl 2.0.0.Alpha6

org.ocpsoft.rewrite.instance
Class DefaultValidatorProvider

java.lang.Object
  extended by org.ocpsoft.rewrite.instance.DefaultValidatorProvider
All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted, ValidatorProvider

public class DefaultValidatorProvider
extends Object
implements ValidatorProvider

Default implementation of ValidatorProvider which allows to use Rewrite Validator implementations by their type.

Author:
Christian Kaltepoth

Constructor Summary
DefaultValidatorProvider()
           
 
Method Summary
 Validator<?> getByTargetType(Class<?> targetType)
           
 Validator<?> getByValidatorId(String id)
           
 Validator<?> getByValidatorType(Class<?> validatorType)
           
 int priority()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValidatorProvider

public DefaultValidatorProvider()
Method Detail

getByValidatorType

public Validator<?> getByValidatorType(Class<?> validatorType)
Specified by:
getByValidatorType in interface ValidatorProvider

getByTargetType

public Validator<?> getByTargetType(Class<?> targetType)
Specified by:
getByTargetType in interface ValidatorProvider

getByValidatorId

public Validator<?> getByValidatorId(String id)
Specified by:
getByValidatorId in interface ValidatorProvider

priority

public int priority()
Specified by:
priority in interface org.ocpsoft.common.pattern.Weighted

rewrite-impl 2.0.0.Alpha6

Copyright © 2013 OCPsoft. All Rights Reserved.