|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.cdi.ValidationExtension
public class ValidationExtension
A CDI portable extension which registers beans for ValidatorFactory and Validator,
if such beans not yet exist (which for instance would be the case in a Java EE 6 container).
All registered beans will be ApplicationScoped.
| Constructor Summary | |
|---|---|
ValidationExtension()
|
|
| Method Summary | ||
|---|---|---|
void |
afterBeanDiscovery(javax.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscoveryEvent,
javax.enterprise.inject.spi.BeanManager beanManager)
Registers the Hibernate specific ValidatorFactory and Validator. |
|
void |
beforeBeanDiscovery(javax.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscoveryEvent,
javax.enterprise.inject.spi.BeanManager beanManager)
Used to register the method validation interceptor binding annotation. |
|
|
processAnnotatedType(javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotatedTypeEvent)
Used to register the method validation interceptor bindings. |
|
void |
processBean(javax.enterprise.inject.spi.ProcessBean processBeanEvent)
Watches the ProcessBean event in order to determine whether and under which qualifiers ValidatorFactorys
and Validators get registered. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationExtension()
| Method Detail |
|---|
public void afterBeanDiscovery(@Observes
javax.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscoveryEvent,
javax.enterprise.inject.spi.BeanManager beanManager)
ValidatorFactory and Validator. The qualifiers used for registration
depend on which other beans have already registered these type of beans.
afterBeanDiscoveryEvent - event fired after the bean discovery phase.beanManager - the bean manager.
public void processBean(@Observes
javax.enterprise.inject.spi.ProcessBean processBeanEvent)
ProcessBean event in order to determine whether and under which qualifiers ValidatorFactorys
and Validators get registered.
processBeanEvent - event fired for each enabled bean.
public void beforeBeanDiscovery(@Observes
javax.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscoveryEvent,
javax.enterprise.inject.spi.BeanManager beanManager)
beforeBeanDiscoveryEvent - event fired before the bean discovery process startsbeanManager - the bean manager.
public <T> void processAnnotatedType(@Observes
javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotatedTypeEvent)
processAnnotatedTypeEvent - event fired for each annotated type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||