Examples of endContext()


Examples of org.apache.webbeans.spi.ContextsService.endContext()

        stopSessionScope();
        stopConversationScope();
        stopRequestScope();
        stopApplicationScope();
        contextsService.endContext(Singleton.class, null);
    }

    public void stopApplicationScope() throws Exception
    {
        logger.log(Level.FINE, "stopping the OWB ApplicationContext");
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

    public void stopApplicationScope() throws Exception
    {
        logger.log(Level.FINE, "stopping the OWB ApplicationContext");
        WebBeansContext webBeansContext = WebBeansContext.currentInstance();
        ContextsService contextsService = webBeansContext.getContextsService();
        contextsService.endContext(ApplicationScoped.class, servletContext);
    }

    public void stopConversationScope() throws Exception
    {
        logger.log(Level.FINE, "stopping the OWB ConversationContext");
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

    public void stopConversationScope() throws Exception
    {
        logger.log(Level.FINE, "stopping the OWB ConversationContext");
        WebBeansContext webBeansContext = WebBeansContext.currentInstance();
        ContextsService contextsService = webBeansContext.getContextsService();
        contextsService.endContext(ConversationScoped.class, null);
    }

    public void stopCustomScope(Class<? extends Annotation> scopeClass) throws Exception
    {
        //X TODO
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

    public void stopRequestScope() throws Exception
    {
        logger.log(Level.FINE, "stopping the OWB RequestContext");
        WebBeansContext webBeansContext = WebBeansContext.currentInstance();
        ContextsService contextsService = webBeansContext.getContextsService();
        contextsService.endContext(RequestScoped.class, null);
    }

    public void stopSessionScope() throws Exception
    {
        logger.log(Level.FINE, "stopping the OWB SessionContext");
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

    {
        logger.log(Level.FINE, "stopping the OWB SessionContext");
        WebBeansContext webBeansContext = WebBeansContext.currentInstance();
        ContextsService contextsService = webBeansContext.getContextsService();

        contextsService.endContext(SessionScoped.class, session);
    }
   
    public  BeanManager getBeanManager()
    {
        return lifecycle.getBeanManager();
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

    }
   
    public static void destroyRequestContext(Object request)
    {
        ContextsService contextService = getContextsService();
        contextService.endContext(RequestScoped.class, request);
    }

    public static void initSessionContext(Object session)
    {
        try
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

    }

    public static void destroySessionContext(Object session)
    {
        ContextsService contextService = getContextsService();
        contextService.endContext(SessionScoped.class, session);
    }

    /**
     * Creates the application context at the application startup
     *
 
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

     * @param parameter parameter object
     */
    public static void destroyApplicationContext(Object parameter)
    {
        ContextsService contextService = getContextsService();
        contextService.endContext(ApplicationScoped.class, parameter);
    }
   
    public static void initSingletonContext(Object parameter)
    {
        try
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

    }
   
    public static void destroySingletonContext(Object parameter)
    {
        ContextsService contextService = getContextsService();
        contextService.endContext(Singleton.class, parameter);
    }

    public static void initConversationContext(Object context)
    {
        try
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

    }

    public static void destroyConversationContext()
    {
        ContextsService contextService = getContextsService();
        contextService.endContext(ConversationScoped.class, null);
    }

    /**
     * Gets the current context with given type.
     *
 
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.