Package javax.enterprise.event

Examples of javax.enterprise.event.Observes.during()


        }
        else if (observes.during().equals(TransactionPhase.AFTER_SUCCESS))
        {
            return TransactionalObserverType.AFTER_TRANSACTION_SUCCESS;
        }
        else if (observes.during().equals(TransactionPhase.AFTER_FAILURE))
        {
            return TransactionalObserverType.AFTER_TRANSACTION_FAILURE;
        }
        else if (observes.during().equals(TransactionPhase.BEFORE_COMPLETION))
        {
View Full Code Here


        }
        else if (observes.during().equals(TransactionPhase.AFTER_FAILURE))
        {
            return TransactionalObserverType.AFTER_TRANSACTION_FAILURE;
        }
        else if (observes.during().equals(TransactionPhase.BEFORE_COMPLETION))
        {
            return TransactionalObserverType.BEFORE_TRANSACTION_COMPLETION;
        }
        else
        {
View Full Code Here

    public static TransactionPhase getObserverMethodTransactionType(AnnotatedMethod<?> observerMethod)
    {
        Observes observes = AnnotationUtil.getAnnotatedMethodFirstParameterAnnotation(observerMethod, Observes.class);
        if (observes != null)
        {
            return observes.during();
        }
       
        return null;
    }
View Full Code Here

    if (method.isAnnotationPresent(Disposes.class)) {
      throw InjectManager.error(method, L.l("A method may not have both an @Observer and a @Disposes annotation."));
    }

    ObserverMethodImpl<X,Z> observerMethod;
    switch(observes.during()) {
    case BEFORE_COMPLETION:
      observerMethod
        = new ObserverMethodBeforeCompletionImpl(_cdiManager,
                                                 bean,
                                                 beanMethod,
View Full Code Here

      Observes observes = param.getAnnotation(Observes.class);
     
      if (observes != null) {
        _isIfExists = observes.notifyObserver() == Reception.IF_EXISTS;
        _transactionPhase = observes.during();
      }
      else {
        InjectionPoint ip = new InjectionPointImpl(_cdiManager,
                                                   _bean,
                                                   param);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.