Examples of wrapExpressionFactory()


Examples of com.caucho.config.inject.InjectManager.wrapExpressionFactory()

    InjectManager injectManager = _webApp.getBeanManager();
   
    ExpressionFactory factory = new JspExpressionFactoryImpl(this);
   
    _expressionFactory = injectManager.wrapExpressionFactory(factory);
   
    _contextLocal.set(this);
  }
 
  public static JspApplicationContextImpl getCurrent()
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager.wrapExpressionFactory()

                if (expressionFactory == null) {
                    BeanManager bm = beanManager();
                    if (bm == null) {
                        expressionFactory = application.getExpressionFactory();
                    } else {
                        expressionFactory = bm.wrapExpressionFactory(application.getExpressionFactory());
                    }
                }
            }
        }
        return expressionFactory;
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager.wrapExpressionFactory()

                if (expressionFactory == null) {
                    BeanManager bm = beanManager();
                    if (bm == null) {
                        expressionFactory = application.getExpressionFactory();
                    } else {
                        expressionFactory = bm.wrapExpressionFactory(application.getExpressionFactory());
                    }
                }
            }
        }
        return expressionFactory;
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager.wrapExpressionFactory()

        // register compositeELResolver with JSP
        jspAppContext.addELResolver(beanManager.getELResolver());
        jspAppContext.addELContextListener(Reflections.<ELContextListener>newInstance("org.jboss.weld.el.WeldELContextListener", getClass().getClassLoader()));

        return beanManager.wrapExpressionFactory(expressionFactory);
    }

    private BeanManager getBeanManager() {
        try {
            return (BeanManager) new InitialContext().lookup("java:comp/BeanManager");
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager.wrapExpressionFactory()

            application.addELContextListener(Util.<ELContextListener>newInstance(
                "org.jboss.weld.el.WeldELContextListener"));
            application.addELResolver(beanManager.getELResolver());
            JspApplicationContext jspAppContext = JspFactory.getDefaultFactory().
                getJspApplicationContext((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext());
            this.expressionFactory = beanManager.wrapExpressionFactory(jspAppContext.getExpressionFactory());
            ((JspApplicationContextImpl)jspAppContext).setExpressionFactory(this.expressionFactory);
        }
    }

    public Application getWrapped() {
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager.wrapExpressionFactory()

    @Override
    public ExpressionFactory getExpressionFactory() {
        if (this.expressionFactory == null) {
            BeanManager beanManager = getBeanManager();
            if (beanManager != null) {
                this.expressionFactory = beanManager.wrapExpressionFactory(getWrapped().getExpressionFactory());
          } else {
              this.expressionFactory = getWrapped().getExpressionFactory();
          }
        }
        return expressionFactory;
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager.wrapExpressionFactory()

    private void init() {
        ExpressionFactory expressionFactory = this.expressionFactory;
        BeanManager beanManager = null;
        if (expressionFactory == null && (expressionFactory = application.getExpressionFactory()) != null && (beanManager = beanManager()) != null) {
            elResolver.beanManagerReady(beanManager);
            this.expressionFactory = beanManager.wrapExpressionFactory(expressionFactory);
        }
    }

    @Override
    protected Application delegate() {
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager.wrapExpressionFactory()

        if (expressionFactory == null) {
            BeanManager bm = beanManager();
            if (bm == null) {
                expressionFactory = application.getExpressionFactory();
            } else {
                expressionFactory = bm.wrapExpressionFactory(application.getExpressionFactory());
            }
        }
        return expressionFactory;
    }
View Full Code Here

Examples of org.jboss.weld.manager.api.WeldManager.wrapExpressionFactory()

            } catch (IllegalArgumentException e) {
                throw WeldServletLogger.LOG.errorLoadingWeldELContextListener(e);
            }

            // Push the wrapped expression factory into the servlet context so that Tomcat or Jetty can hook it in using a container code
            context.setAttribute(EXPRESSION_FACTORY_NAME, manager.wrapExpressionFactory(jspApplicationContext.getExpressionFactory()));
        }

        if (isBootstrapNeeded) {
            bootstrap.deployBeans().validateBeans().endInitialization();
        }
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.