org.jboss.seam.validation
Class InjectingConstraintValidatorFactory
java.lang.Object
org.jboss.seam.solder.beanManager.BeanManagerAware
org.jboss.seam.validation.InjectingConstraintValidatorFactory
- All Implemented Interfaces:
- javax.validation.ConstraintValidatorFactory
public class InjectingConstraintValidatorFactory
- extends org.jboss.seam.solder.beanManager.BeanManagerAware
- implements javax.validation.ConstraintValidatorFactory
A ConstraintValidatorFactory which enables CDI based dependency injection for the created ConstraintValidator
s. Validator types must be valid CDI beans - in particular they must be defined in a bean deployment archive (BDA) - in order
to make use of DI services.
- Author:
- Gunnar Morling
|
Method Summary |
<T extends javax.validation.ConstraintValidator<?,?>>
T |
|
getInstance(Class<T> key)
|
| Methods inherited from class org.jboss.seam.solder.beanManager.BeanManagerAware |
getBeanManager, getBeanManagerLocator, isBeanManagerAvailable, isBeanManagerInjected |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectingConstraintValidatorFactory
public InjectingConstraintValidatorFactory()
getInstance
public <T extends javax.validation.ConstraintValidator<?,?>> T getInstance(Class<T> key)
- Specified by:
getInstance in interface javax.validation.ConstraintValidatorFactory
Copyright © 2011 Seam Framework & Gunnar Morling. All Rights Reserved.