Package org.jboss.as.ee.component

Examples of org.jboss.as.ee.component.ComponentInterceptorFactory


        super(description);

        addComponentSystemInterceptorFactory(pooled());

        if(description.getTransactionManagementType().equals(TransactionManagementType.BEAN)) {
            addComponentSystemInterceptorFactory(new ComponentInterceptorFactory() {
                @Override
                protected Interceptor create(final Component component, final InterceptorFactoryContext context) {
                    return new StatelessBMTInterceptor((StatelessSessionComponent) component);
                }
            });
View Full Code Here


            this.beanLevelLockType = description.getBeanLevelLockType();

            // container managed concurrency interceptor
            if (description.getConcurrencyManagementType() != ConcurrencyManagementType.BEAN) {
                // Add ComponentInstance level interceptor
                this.addComponentInstanceSystemInterceptorFactory(new ComponentInterceptorFactory() {
                    @Override
                    protected Interceptor create(Component component, InterceptorFactoryContext context) {
                        if (component instanceof LockableComponent) {
                            return new ContainerManagedConcurrencyInterceptor((LockableComponent) component);
                        } else {
View Full Code Here

        super(description);

        addComponentSystemInterceptorFactory(new ImmediateInterceptorFactory(PooledInstanceInterceptor.INSTANCE));

        if(description.getTransactionManagementType().equals(TransactionManagementType.BEAN)) {
            addComponentSystemInterceptorFactory(new ComponentInterceptorFactory() {
                @Override
                protected Interceptor create(final Component component, final InterceptorFactoryContext context) {
                    return new StatelessBMTInterceptor((StatelessSessionComponent) component);
                }
            });
View Full Code Here

        super(description);

        addComponentSystemInterceptorFactory(new ImmediateInterceptorFactory(new ComponentInstanceInterceptor()));

        if(description.getTransactionManagementType().equals(TransactionManagementType.BEAN)) {
            addComponentSystemInterceptorFactory(new ComponentInterceptorFactory() {
                @Override
                protected Interceptor create(final Component component, final InterceptorFactoryContext context) {
                    return new StatefulBMTInterceptor((StatefulSessionComponent) component);
                }
            });
View Full Code Here

        // CMTTx
        if (transactionManagementType.equals(TransactionManagementType.CONTAINER)) {
            // slurp some memory
            txAttrs = new ConcurrentHashMap<MethodIntf, ConcurrentMap<String, ConcurrentMap<ArrayKey, TransactionAttributeType>>>();

            addComponentSystemInterceptorFactory(new ComponentInterceptorFactory() {
                @Override
                protected Interceptor create(Component component, InterceptorFactoryContext context) {
                    return new CMTTxInterceptor((TransactionalComponent) component);
                }
            });
View Full Code Here

            this.methodAccessTimeouts = description.getMethodApplicableAccessTimeouts();

            // container managed concurrency interceptor
            if (description.getConcurrencyManagementType() != ConcurrencyManagementType.BEAN) {
                // Add ComponentInstance level interceptor
                this.addComponentInstanceSystemInterceptorFactory(new ComponentInterceptorFactory() {
                    @Override
                    protected Interceptor create(Component component, InterceptorFactoryContext context) {
                        if (component instanceof LockableComponent) {
                            return new ContainerManagedConcurrencyInterceptor((LockableComponent) component);
                        } else {
View Full Code Here

        // CMTTx
        if (transactionManagementType.equals(TransactionManagementType.CONTAINER)) {
            // slurp some memory
            txAttrs = new ConcurrentHashMap<MethodIntf, ConcurrentMap<String, ConcurrentMap<ArrayKey, TransactionAttributeType>>>();

            addComponentSystemInterceptorFactory(new ComponentInterceptorFactory() {
                @Override
                protected Interceptor create(Component component, InterceptorFactoryContext context) {
                    return new CMTTxInterceptor((TransactionalComponent) component);
                }
            });
View Full Code Here

        // instance associating interceptor
        this.addComponentSystemInterceptorFactory(new ImmediateInterceptorFactory(new SingletonComponentInstanceAssociationInterceptor()));

        // BMT interceptor
        if (TransactionManagementType.BEAN.equals(description.getTransactionManagementType())) {
            addComponentSystemInterceptorFactory(new ComponentInterceptorFactory() {
                @Override
                protected Interceptor create(final Component component, final InterceptorFactoryContext context) {
                    return new SingletonBMTInterceptor((SingletonComponent) component);
                }
            });
View Full Code Here

TOP

Related Classes of org.jboss.as.ee.component.ComponentInterceptorFactory

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.