daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.example
  2.  
  3. import javax.enterprise.event.Observes;
  4. import javax.enterprise.inject.spi.*;
  5.  
  6. import org.slf4j.Logger;
  7. import org.slf4j.LoggerFactory;
  8.  
  9.  
  10. public class CdiExtension implements Extension {
  11.  
  12.     private static final Logger LOG = LoggerFactory.getLogger(CdiExtension.class);
  13.  
  14.     void processObserverMethod(@Observes final ProcessObserverMethod<?, ?> processObserverMethod) {
  15.         LOG.debug("processObserverMethods() processObserverMethod={}", processObserverMethod);
  16.     }
  17.  
  18.     void processBean(@Observes final ProcessBean<?> processBean) {
  19.         LOG.debug("processBean() processBean={}", processBean);
  20.     }
  21.  
  22.     void processAnnotatedType(@Observes final ProcessAnnotatedType<?> processAnnotatedType) {
  23.         LOG.debug("processAnnotatedType() processAnnotatedType={}", processAnnotatedType);
  24.     }
  25.  
  26.     void afterDeploymentValidation(@Observes final AfterDeploymentValidation afterDeploymentValidation, final BeanManager beanManager) {
  27.         LOG.debug("afterDeploymentValidation() afterDeploymentValidation={}", afterDeploymentValidation);
  28.     }
  29.  
  30.     void beforeBeanDiscovery(@Observes final BeforeBeanDiscovery beforeBeanDiscovery) {
  31.         LOG.debug("beforeBeanDiscovery() beforeBeanDiscovery={}", beforeBeanDiscovery);
  32.     }
  33.  
  34.     void afterBeanDiscovery(@Observes final AfterBeanDiscovery afterBeanDiscovery) {
  35.         LOG.debug("afterBeanDiscovery() afterBeanDiscovery={}", afterBeanDiscovery);
  36.     }
  37.  
  38.     void beforeShutdown(@Observes final BeforeShutdown beforeShutdown) {
  39.         LOG.debug("beforeShutdown() beforeShutdown={}", beforeShutdown);
  40.     }
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top