Examples of WebBeansContext


Examples of org.apache.webbeans.config.WebBeansContext

    }

    public void startSessionScope() throws Exception
    {
        logger.log(Level.FINE, "starting the OWB SessionContext");
        WebBeansContext webBeansContext = WebBeansContext.currentInstance();
        ContextsService contextsService = webBeansContext.getContextsService();

        contextsService.startContext(SessionScoped.class, session);
    }
View Full Code Here

Examples of org.apache.webbeans.context.WebBeansContext

        return object;
    }

    private <T> Object injectForComponent(AbstractComponent<T> component)
    {
        WebBeansContext context = null;
        Object object = null;

        context = (WebBeansContext) ManagerImpl.getManager().getContext(component.getScopeType());
        object = context.get(component, new CreationalContextImpl<T>());

        return object;

    }
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.