com.avaje.ebean.validation.factory
Class NotNullValidatorFactory
java.lang.Object
com.avaje.ebean.validation.factory.NotNullValidatorFactory
- All Implemented Interfaces:
- ValidatorFactory
-
public class NotNullValidatorFactory
- extends Object
-
- implements ValidatorFactory
-
Creates a NotNull validator.
Note that there is actually only one instance of this validator as it is thread-safe.
Method Summary |
Validator |
create(Annotation annotation, Class<?> type)
Create the validator given the annotation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOT_NULL
public static final Validator NOT_NULL
-
NotNullValidatorFactory
public NotNullValidatorFactory()
create
public Validator create(Annotation annotation,
Class<?> type)
- Description copied from interface:
ValidatorFactory
-
Create the validator given the annotation.
-
- Specified by:
create
in interface ValidatorFactory
-
Copyright © 2010. All Rights Reserved.