SimpleBeanValidator factory methods.@Deprecated public class BeanValidatorFactory extends Object
BeanValidator.
To obtain a new BeanValidator, use one of the method
BeanValidatorFactory.newBeanValidator(XXX)
BeanValidator| Modifier and Type | Class and Description |
|---|---|
static interface |
BeanValidatorFactory.BeanValidatorCreator
Deprecated.
Contract to create a
BeanValidator. |
static class |
BeanValidatorFactory.DefaultBeanValidatorCreator
Deprecated.
Default implementation of
BeanValidatorFactory.BeanValidatorCreator which just
instanciate a BeanValidator from the given parameters. |
| Modifier and Type | Field and Description |
|---|---|
protected static BeanValidatorFactory.BeanValidatorCreator |
creator
Deprecated.
Object to create new validators.
|
| Constructor and Description |
|---|
BeanValidatorFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static BeanValidatorFactory.BeanValidatorCreator |
getCreator()
Deprecated.
Obtain the bean validator creator.
|
static boolean |
isDefaultCreator()
Deprecated.
|
static <O> BeanValidator<O> |
newBeanValidator(Class<O> type,
String context,
NuitonValidatorScope... scopes)
Deprecated.
Obtain a new
BeanValidator for the given parameters. |
static <O> BeanValidator<O> |
newBeanValidator(String providerName,
Class<O> type,
String context,
NuitonValidatorScope... scopes)
Deprecated.
Obtain a new
BeanValidator for the given parameters. |
static void |
setCreator(BeanValidatorFactory.BeanValidatorCreator creator)
Deprecated.
Sets an explicit bean validator creator.
|
protected static BeanValidatorFactory.BeanValidatorCreator creator
BeanValidatorFactory.DefaultBeanValidatorCreator.public static BeanValidatorFactory.BeanValidatorCreator getCreator()
BeanValidatorFactory.DefaultBeanValidatorCreator.public static void setCreator(BeanValidatorFactory.BeanValidatorCreator creator)
creator - the creator to usepublic static boolean isDefaultCreator()
public static <O> BeanValidator<O> newBeanValidator(Class<O> type, String context, NuitonValidatorScope... scopes) throws NullPointerException
BeanValidator for the given parameters.
Note: It will use the default provider of NuitonValidatorO - type of bean to validatetype - type of bean to validatecontext - context of validationscopes - authorized scopes (if null, will use all scopes)BeanValidator.NullPointerException - if type is nullNuitonValidatorFactory.getDefaultProviderName()public static <O> BeanValidator<O> newBeanValidator(String providerName, Class<O> type, String context, NuitonValidatorScope... scopes) throws NullPointerException
BeanValidator for the given parameters.
Note: It will use the provider of NuitonValidator
defined by the providerName.O - type of bean to validateproviderName - name of NuitonValidator to usetype - type of bean to validatecontext - context of validationscopes - authorized scopes (if null, will use all scopes)BeanValidator.NullPointerException - if type is nullNuitonValidatorFactory.getProvider(String)Copyright © 2011-2012 CodeLutin. All Rights Reserved.