Examples of addAdditionalQualifier()


Examples of org.apache.webbeans.container.BeanManagerImpl.addAdditionalQualifier()

        contextCDIIntegration(event.getContext());
    }

    private void contextCDIIntegration(final WebBeansContext wbc) {
        final BeanManagerImpl beanManagerImpl = wbc.getBeanManagerImpl();
        beanManagerImpl.addAdditionalQualifier(Context.class);
        beanManagerImpl.addInternalBean(new ContextBean<SecurityContext>(SecurityContext.class, ThreadLocalContextManager.SECURITY_CONTEXT));
        beanManagerImpl.addInternalBean(new ContextBean<UriInfo>(UriInfo.class, ThreadLocalContextManager.URI_INFO));
        beanManagerImpl.addInternalBean(new ContextBean<HttpServletRequest>(HttpServletRequest.class, ThreadLocalContextManager.HTTP_SERVLET_REQUEST));
        beanManagerImpl.addInternalBean(new ContextBean<HttpServletResponse>(HttpServletResponse.class, ThreadLocalContextManager.HTTP_SERVLET_RESPONSE));
        beanManagerImpl.addInternalBean(new ContextBean<HttpHeaders>(HttpHeaders.class, ThreadLocalContextManager.HTTP_HEADERS));
View Full Code Here

Examples of org.apache.webbeans.container.BeanManagerImpl.addAdditionalQualifier()

            return;
        }

        final BeanManagerImpl beanManagerImpl = wbc.getBeanManagerImpl();
        if (!beanManagerImpl.getAdditionalQualifiers().contains(Context.class)) {
            beanManagerImpl.addAdditionalQualifier(Context.class);
        }
        if (!hasBean(beanManagerImpl, SecurityContext.class)) {
            beanManagerImpl.addInternalBean(new ContextBean<>(SecurityContext.class, ThreadLocalContextManager.SECURITY_CONTEXT));
        }
        if (!hasBean(beanManagerImpl, UriInfo.class)) {
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.