Examples of destroyRequestContext()


Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

        }
        else
        {
            if(destroy)
            {
                contextFactory.destroyRequestContext(null);
            }
            else
            {
                contextFactory.deActivateContext(RequestScoped.class);
            }           
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

    @Override
    public void beforeStopApplication(Object endObject)
    {
        WebBeansContext webBeansContext = getWebBeansContext();
        ContextFactory contextFactory = webBeansContext.getContextFactory();
        contextFactory.destroyRequestContext(null);
        contextFactory.destroySessionContext(this.mockHttpSession);
        contextFactory.destroyConversationContext();
        contextFactory.destroyApplicationContext(this.servletContextEvent.getServletContext());

        //Comment out for OWB-502
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

        }
        else
        {
            if(destroy)
            {
                contextFactory.destroyRequestContext(null);
            }
            else
            {
                contextFactory.deActivateContext(RequestScoped.class);
            }           
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

        String[] arr = (String[]) obj;

        Assert.assertEquals(1, arr.length);
        Assert.assertTrue("key0".equals(arr[0]));
        contextFactory.destroyRequestContext(null);
    }

    @Test
    public void testMultipleListOfInterceptedComponent()
    {
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

        Assert.assertTrue(obj instanceof String);

        Assert.assertEquals("ok", (String) obj);

        contextFactory.destroyRequestContext(null);
    }

    @Test
    public void testMultipleListOfInterceptedWithExcludeClassComponent()
    {
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

        Assert.assertTrue(obj instanceof String);

        Assert.assertEquals("value2", (String) obj);

        contextFactory.destroyRequestContext(null);
    }

}
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

       
        Assert.assertNotNull(instance);
       
        Assert.assertTrue(SecureInterceptor.CALL);

        contextFactory.destroyRequestContext(null);

        SecureInterceptor.CALL = false;

        contextFactory.initRequestContext(null);
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

       
        Assert.assertNotNull(instance);
       
        Assert.assertTrue(SecureInterceptor.CALL);

        contextFactory.destroyRequestContext(null);

    }

}
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

    public void stopContexts() throws Exception
    {
        WebBeansContext webBeansContext = WebBeansContext.getInstance();
        ContextFactory contextFactory = webBeansContext.getContextFactory();

        contextFactory.destroyRequestContext(null);
        contextFactory.destroyConversationContext();
        contextFactory.destroySessionContext(session);
        contextFactory.destroyApplicationContext(servletContext);
        contextFactory.destroySingletonContext(servletContext);
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.destroyRequestContext()

        WInterceptorComponent comp = (WInterceptorComponent) object;
        int s = comp.hello();

        Assert.assertEquals(5, s);

        contextFactory.destroyRequestContext(null);
    }

    @Test
    public void testMetaInterceptorCalls()
    {
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.