Examples of initApplicationContext()


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

        WebBeansContext webBeansContext = getWebBeansContext();
        ContextFactory contextFactory = webBeansContext.getContextFactory();
        contextFactory.initRequestContext(null);
        contextFactory.initSessionContext(mockHttpSession);
        contextFactory.initConversationContext(null);
        contextFactory.initApplicationContext(this.servletContextEvent.getServletContext());
    }
   
    @Override
    public void initApplication(Properties properties)
    {
View Full Code Here

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

            contextFactory.activateContext(scopeType);
            return 0;
        }
        else if(ctx == null)
        {
            contextFactory.initApplicationContext(null);
            return 1;

        }    
       
        return -1;
View Full Code Here

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

    {
        WebBeansContext webBeansContext = WebBeansContext.getInstance();
        ContextFactory contextFactory = webBeansContext.getContextFactory();

        contextFactory.initSingletonContext(servletContext);
        contextFactory.initApplicationContext(servletContext);
        contextFactory.initSessionContext(session);
        contextFactory.initConversationContext(null);
        contextFactory.initRequestContext(null);
    }
View Full Code Here

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

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

        contextFactory.initApplicationContext(servletContext);
    }

    @Override
    public void startConversationScope() throws Exception
    {
View Full Code Here

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

        List<AbstractOwbBean<?>> comps = getComponents();

        ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
        contextFactory.initRequestContext(null);
        contextFactory.initApplicationContext(null);

        Assert.assertEquals(7, getDeployedComponents());

        Object obj = getManager().getInstance(comps.get(0));
       
View Full Code Here

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

        Object session = getSession();
        ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
        contextFactory.initRequestContext(null);
        contextFactory.initSessionContext(session);
        contextFactory.initApplicationContext(null);

        List<AbstractOwbBean<?>> comps = getComponents();

        Assert.assertEquals(7, getDeployedComponents());
View Full Code Here

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

        List<AbstractOwbBean<?>> comps = getComponents();

        ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
        contextFactory.initRequestContext(null);
        contextFactory.initApplicationContext(null);

        Assert.assertEquals(2, comps.size());

        Object producerResult = getManager().getInstanceByName("service");
       
View Full Code Here

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

        defineManagedBean(ServiceImpl1.class);
        List<AbstractOwbBean<?>> comps = getComponents();

        ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
        contextFactory.initRequestContext(null);
        contextFactory.initApplicationContext(null);

        Assert.assertEquals(2, comps.size());

        Object object = getManager().getInstance(comps.get(0));
View Full Code Here

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

        Object session = getSession();
        ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
        contextFactory.initRequestContext(null);
        contextFactory.initSessionContext(session);
        contextFactory.initApplicationContext(null);

        List<AbstractOwbBean<?>> comps = getComponents();

        Assert.assertEquals(4, getDeployedComponents());
View Full Code Here

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

        List<AbstractOwbBean<?>> comps = getComponents();

        ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
        contextFactory.initRequestContext(null);
        contextFactory.initApplicationContext(null);

        Assert.assertEquals(4, getDeployedComponents());

        Object obj = getManager().getInstance(comps.get(0));
       
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.