Package org.apache.webbeans.spi

Examples of org.apache.webbeans.spi.TransactionService


            {
                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = webBeansContext.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        if (observer instanceof OwbObserverMethod)
                        {
View Full Code Here


            {
                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = webBeansContext.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        observer.notify(event);
                    }                   
View Full Code Here

            {
                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = webBeansContext.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        observer.notify(event);
                    }                   
View Full Code Here

            {
                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = ServiceLoader.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        observer.notify(event);
                    }                   
View Full Code Here

                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = webBeansContext.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        if (observer instanceof OwbObserverMethod)
                        {
View Full Code Here

            {
                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = webBeansContext.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        observer.notify(event);
                    }                   
View Full Code Here

       
    }
   
    public static void registerTransactionSynchronization(TransactionPhase phase, ObserverMethod<? super Object> observer, Object event) throws Exception
    {
        TransactionService transactionService = WebBeansContext.getInstance().getService(TransactionService.class);
       
        Transaction transaction = null;
        if(transactionService != null)
        {
            transaction = transactionService.getTransaction();
        }
       
        if(transaction != null)
        {
            if (phase.equals(TransactionPhase.AFTER_COMPLETION))
View Full Code Here

    }

    @Override
    protected UserTransaction createActualInstance(CreationalContext<UserTransaction> creationalContext)
    {
        TransactionService transactionService = getWebBeansContext().getService(TransactionService.class);
        if(transactionService != null)
        {
            return transactionService.getUserTransaction();
        }
       
        return null;
    }
View Full Code Here

    }

    @Override
    protected UserTransaction createInstance(CreationalContext<UserTransaction> creationalContext)
    {
        TransactionService transactionService = getWebBeansContext().getService(TransactionService.class);
        if(transactionService != null)
        {
            UserTransaction t = transactionService.getUserTransaction();
            return createProxyWrapper(t, creationalContext);
        }
       
        return null;
    }
View Full Code Here

                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = webBeansContext.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        if (observer instanceof OwbObserverMethod)
                        {
View Full Code Here

TOP

Related Classes of org.apache.webbeans.spi.TransactionService

Copyright © 2018 www.massapicom. 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.