Package org.ocpsoft.rewrite.instance
Class DefaultValidatorProvider
java.lang.Object
org.ocpsoft.rewrite.instance.DefaultValidatorProvider
- All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted,ValidatorProvider
Default implementation of
ValidatorProvider which allows to use Rewrite Validator implementations by
their type.- Author:
- Christian Kaltepoth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionValidator<?>getByTargetType(Class<?> targetType) Validator<?>Validator<?>getByValidatorType(Class<?> validatorType) intpriority()
-
Constructor Details
-
DefaultValidatorProvider
public DefaultValidatorProvider()
-
-
Method Details
-
getByValidatorType
- Specified by:
getByValidatorTypein interfaceValidatorProvider
-
getByTargetType
- Specified by:
getByTargetTypein interfaceValidatorProvider
-
getByValidatorId
- Specified by:
getByValidatorIdin interfaceValidatorProvider
-
priority
public int priority()- Specified by:
priorityin interfaceorg.ocpsoft.common.pattern.Weighted
-