Examples of during()


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

    public static TransactionPhase getObserverMethodTransactionType(Method observerMethod)
    {
        Observes observes = AnnotationUtil.getMethodFirstParameterAnnotation(observerMethod, Observes.class);
        if (observes != null)
        {
            return observes.during();
        }
       
        return null;
    }
View Full Code Here

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

    public static TransactionPhase getObserverMethodTransactionType(Method observerMethod)
    {
        Observes observes = AnnotationUtil.getMethodFirstParameterAnnotation(observerMethod, Observes.class);
        if (observes != null)
        {
            return observes.during();
        }
       
        return null;
    }
View Full Code Here

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

    public static TransactionPhase getObserverMethodTransactionType(Method observerMethod)
    {
        Observes observes = AnnotationUtil.getMethodFirstParameterAnnotation(observerMethod, Observes.class);
        if (observes != null)
        {
            return observes.during();
        }
       
        return null;
    }
View Full Code Here

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

    public static TransactionPhase getObserverMethodTransactionType(Method observerMethod)
    {
        Observes observes = AnnotationUtil.getMethodFirstParameterAnnotation(observerMethod, Observes.class);
        if (observes != null)
        {
            return observes.during();
        }
       
        return null;
    }
View Full Code Here

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

    public static TransactionPhase getObserverMethodTransactionType(Method observerMethod)
    {
        Observes observes = AnnotationUtil.getMethodFirstParameterAnnotation(observerMethod, Observes.class);
        if (observes != null)
        {
            return observes.during();
        }
       
        return null;
    }
View Full Code Here

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

        this.annotatedObservesParameter = annotatedObservesParameter;
        this.annotatedObserverMethod = annotatedObserverMethod;
        observedEventType = annotatedObservesParameter.getBaseType();
        Observes observes = annotatedObservesParameter.getAnnotation(Observes.class);
        ifExist = observes.notifyObserver() == Reception.IF_EXISTS;
        phase = observes.during();
        observedQualifiers = new HashSet<Annotation>();
        for (Annotation annotation: annotatedObservesParameter.getAnnotations())
        {
            if (bean.getWebBeansContext().getAnnotationManager().isQualifierAnnotation(annotation.annotationType()))
            {
View Full Code Here

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

        this.annotatedObservesParameter = annotatedObservesParameter;
        this.annotatedObserverMethod = annotatedObserverMethod;
        observedEventType = annotatedObservesParameter.getBaseType();
        Observes observes = annotatedObservesParameter.getAnnotation(Observes.class);
        ifExist = observes.notifyObserver() == Reception.IF_EXISTS;
        phase = observes.during();
        observedQualifiers = new HashSet<Annotation>();
        for (Annotation annotation: annotatedObservesParameter.getAnnotations())
        {
            if (bean.getWebBeansContext().getAnnotationManager().isQualifierAnnotation(annotation.annotationType()))
            {
View Full Code Here

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

        this.annotatedObservesParameter = annotatedObservesParameter;
        this.annotatedObserverMethod = annotatedObserverMethod;
        observedEventType = annotatedObservesParameter.getBaseType();
        Observes observes = annotatedObservesParameter.getAnnotation(Observes.class);
        ifExist = observes.notifyObserver() == Reception.IF_EXISTS;
        phase = observes.during();
        observedQualifiers = new HashSet<Annotation>();
        for (Annotation annotation: annotatedObservesParameter.getAnnotations())
        {
            if (bean.getWebBeansContext().getAnnotationManager().isQualifierAnnotation(annotation.annotationType()))
            {
View Full Code Here

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

    public static TransactionalObserverType getObserverMethodTransactionType(Method observerMethod)
    {
        Observes observes = AnnotationUtil.getMethodFirstParameterAnnotation(observerMethod, Observes.class);
       
        if (observes.during().equals(TransactionPhase.AFTER_COMPLETION))
        {
            return TransactionalObserverType.AFTER_TRANSACTION_COMPLETION;
        }
        else if (observes.during().equals(TransactionPhase.AFTER_SUCCESS))
        {
View Full Code Here

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

       
        if (observes.during().equals(TransactionPhase.AFTER_COMPLETION))
        {
            return TransactionalObserverType.AFTER_TRANSACTION_COMPLETION;
        }
        else if (observes.during().equals(TransactionPhase.AFTER_SUCCESS))
        {
            return TransactionalObserverType.AFTER_TRANSACTION_SUCCESS;
        }
        else if (observes.during().equals(TransactionPhase.AFTER_FAILURE))
        {
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.