Package org.mule.component

Examples of org.mule.component.PooledJavaComponent


                          int active, int idle, long wait)
    {
        Service c = muleContext.getRegistry().lookupService(service);
        assertNotNull(service, c);
        assertTrue(c.getComponent() instanceof PooledJavaComponent);
        PooledJavaComponent pjc = (PooledJavaComponent)c.getComponent();
        PoolingProfile profile = pjc.getPoolingProfile();
        assertNotNull(profile);
        assertEquals("exhausted:", exhausted, profile.getExhaustedAction());
        assertEquals("initialisation:", initialisation, profile.getInitialisationPolicy());
        assertEquals("active:", active, profile.getMaxActive());
        assertEquals("idle:", idle, profile.getMaxIdle());
View Full Code Here


            factory = new PrototypeObjectFactory(clazz);
        }

        if (scope == Scope.Pooled)
        {
            component = new PooledJavaComponent(factory);
        }
        else
        {
            component = new DefaultJavaComponent(factory);
        }
View Full Code Here

            factory = new PrototypeObjectFactory(clazz);
        }

        if (scope == Scope.Pooled)
        {
            component = new PooledJavaComponent(factory);
        }
        else
        {
            component = new DefaultJavaComponent(factory);
        }
View Full Code Here

                          int active, int idle, long wait)
    {
        Object o = muleContext.getRegistry().lookupObject(serviceFlow);
        assertNotNull(serviceFlow, o);
       
        PooledJavaComponent pjc;
       
        if(variant.equals(ConfigVariant.SERVICE))
        {
            assertTrue(((Service)o).getComponent() instanceof PooledJavaComponent);
            pjc = (PooledJavaComponent) ((Service)o).getComponent();
        }
        else
        {           
            assertTrue(((Flow)o).getMessageProcessors().get(0) instanceof PooledJavaComponent);
            pjc = (PooledJavaComponent) ((Flow)o).getMessageProcessors().get(0);
        }
       
        PoolingProfile profile = pjc.getPoolingProfile();
        assertNotNull(profile);
        assertEquals("exhausted:", exhausted, profile.getExhaustedAction());
        assertEquals("initialisation:", initialisation, profile.getInitialisationPolicy());
        assertEquals("active:", active, profile.getMaxActive());
        assertEquals("idle:", idle, profile.getMaxIdle());
View Full Code Here

TOP

Related Classes of org.mule.component.PooledJavaComponent

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.