Uses of Annotation Interface
jakarta.enterprise.event.Observes
Packages that use Observes
Package
Description
Public types dealing with the integration of Hibernate Validator and CDI ("Contexts and Dependency Injection
for JavaTM", JSR 346).
This package contains utility classes.
-
Uses of Observes in org.hibernate.validator.cdi
Method parameters in org.hibernate.validator.cdi with annotations of type ObservesModifier and TypeMethodDescriptionvoidValidationExtension.afterBeanDiscovery(AfterBeanDiscovery afterBeanDiscoveryEvent, BeanManager beanManager) Registers beans forValidatorFactoryandValidatorif not yet present.voidValidationExtension.beforeBeanDiscovery(BeforeBeanDiscovery beforeBeanDiscoveryEvent, BeanManager beanManager) Used to register the method validation interceptor binding annotation.<T> voidValidationExtension.processAnnotatedType(ProcessAnnotatedType<T> processAnnotatedTypeEvent) Used to register the method validation interceptor bindings.voidValidationExtension.processBean(ProcessBean<?> processBeanEvent) Watches theProcessBeanevent in order to determine whether beans forValidatorFactoryandValidatoralready have been registered by some other component. -
Uses of Observes in org.infinispan.cdi.common.util
Method parameters in org.infinispan.cdi.common.util with annotations of type ObservesModifier and TypeMethodDescriptionvoidBeanManagerProvider.cleanupFinalBeanManagers(AfterDeploymentValidation adv) By cleaning the final BeanManager map after the Deployment got Validated, we prevent premature loading of information from JNDI in cases where the container might not be fully setup yet.voidBeanManagerProvider.cleanupStoredBeanManagerOnShutdown(BeforeShutdown beforeShutdown) Cleanup on container shutdownvoidBeanManagerProvider.setBeanManager(AfterBeanDiscovery afterBeanDiscovery, BeanManager beanManager) It basically doesn't matter which of the system events we use, but basically we use theAfterBeanDiscoveryevent since it allows to use theBeanManagerProviderfor all events which occur after theAfterBeanDiscoveryevent. -
Uses of Observes in org.infinispan.cdi.embedded
Method parameters in org.infinispan.cdi.embedded with annotations of type ObservesModifier and TypeMethodDescriptionvoidInfinispanExtensionEmbedded.observeEmbeddedCacheManagerBean(ProcessBean<?> processBean)