Package org.apache.geronimo.concurrent

Examples of org.apache.geronimo.concurrent.ManagedContextHandlerChain


        private static ManagedThreadFactory getManagedThreadFactory() {
            ManagedThreadFactory factory = new BasicManagedThreadFactory();
            return factory;
        }
        private static ManagedContextHandler getManagedContextHandler() {
            ManagedContextHandlerChain chain = new ManagedContextHandlerChain();
            chain.addManagedContextHandler(new TestContextHandler());
            return chain;
        }
View Full Code Here


        private static ManagedThreadFactory getManagedThreadFactory() {
            ManagedThreadFactory factory = new BasicManagedThreadFactory();
            return factory;
        }
        private static ManagedContextHandler getManagedContextHandler() {
            ManagedContextHandlerChain chain = new ManagedContextHandlerChain();
            chain.addManagedContextHandler(new TestContextHandler());
            return chain;
        }
View Full Code Here

        private static ManagedThreadFactory getManagedThreadFactory() {
            ManagedThreadFactory factory = new BasicManagedThreadFactory();
            return factory;
        }
        private static ManagedContextHandler getManagedContextHandler() {
            ManagedContextHandlerChain chain = new ManagedContextHandlerChain();
            chain.addManagedContextHandler(new TestContextHandler());
            return chain;
        }
View Full Code Here

        private static ManagedThreadFactory getManagedThreadFactory() {
            ManagedThreadFactory factory = new BasicManagedThreadFactory();
            return factory;
        }
        private static ManagedContextHandler getManagedContextHandler() {
            ManagedContextHandlerChain chain = new ManagedContextHandlerChain();
            chain.addManagedContextHandler(new TestContextHandler());
            return chain;
        }
View Full Code Here

    private static class TestContextService extends BasicContextService
        public TestContextService() {
            super(createManagedContextHandler());
        }
        private static ManagedContextHandler createManagedContextHandler() {
            ManagedContextHandlerChain chain = new ManagedContextHandlerChain();
            chain.addManagedContextHandler(new TestContextHandler());
            return chain;
        }
View Full Code Here

public class ManagedThreadFactoryTest extends TestCase {
   
    private ManagedThreadFactory getManagedThreadFactory() {
        ManagedThreadFactory factory = new BasicManagedThreadFactory();
        ManagedContextHandlerChain chain = new ManagedContextHandlerChain();
        chain.addManagedContextHandler(new TestContextHandler());
        return ManagedThreadFactoryUtils.createStandaloneThreadFactory(factory, chain);   
    }
View Full Code Here

                               ClassLoader classLoader,
                               AbstractName name,
                               String[] contextHandlerClasses) {
        List<ManagedContextHandler> handlers =
            ContextHandlerUtils.loadHandlers(classLoader, contextHandlerClasses);
        this.mainContextHandler = new ManagedContextHandlerChain(handlers);
    }
View Full Code Here

        this.keepAliveTime = keepAliveTime;
        this.queueCapacity = queueCapacity;
        this.threadFactory = threadFactorySource.getManagedThreadFactory();
        List<ManagedContextHandler> handlers =
            ContextHandlerUtils.loadHandlers(classLoader, contextHandlerClasses);
        this.contextHandler = new ManagedContextHandlerChain(handlers);
    }
View Full Code Here

        this.notificationHelper = new NotificationHelper(kernel, name);
      
        List<ManagedContextHandler> handlers =
            ContextHandlerUtils.loadHandlers(classLoader, contextHandlerClasses);
       
        this.mainContextHandler = new ManagedContextHandlerChain(handlers);
       
        this.groupName = groupName;
        this.daemonThread = daemonThread;
        this.threadPriority = getThreadPriority(threadPriority);
        this.hungTaskThreshold = hungTaskThreshold;
View Full Code Here

                                                         String[] contextHandlerClasses) {
        this.corePoolSize = corePoolSize;
        this.threadFactory = threadFactorySource.getManagedThreadFactory();
        List<ManagedContextHandler> handlers =
            ContextHandlerUtils.loadHandlers(classLoader, contextHandlerClasses);
        this.contextHandler = new ManagedContextHandlerChain(handlers);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.concurrent.ManagedContextHandlerChain

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.