Examples of JspApplicationContextImpl


Examples of com.caucho.jsp.el.JspApplicationContextImpl

      _cdiManager = InjectManager.create(_classLoader);
      _cdiManager.addXmlPath(getRootDirectory().lookup("WEB-INF/beans.xml"));
      _cdiManager.addExtension(new WebAppInjectExtension(_cdiManager, this));

      _jspApplicationContext = new JspApplicationContextImpl(this);
      _jspApplicationContext.addELResolver(_cdiManager.getELResolver());

      // validation
      if (CauchoSystem.isTesting()) {
      }
View Full Code Here

Examples of com.caucho.jsp.el.JspApplicationContextImpl

{
  public static ValueExpression createValueExpression(ELContext elContext,
                                                      Class<?> type,
                                                      String exprString)
  {
    JspApplicationContextImpl jspContext
      = JspApplicationContextImpl.getCurrent();
   
    ExpressionFactory factory = jspContext.getExpressionFactory();

    return factory.createValueExpression(elContext,
                                         exprString,
                                         type);
  }
View Full Code Here

Examples of com.caucho.jsp.el.JspApplicationContextImpl

      return _elContext;

    if (_elContextValue == null) {
      WebApp webApp = getApplication();

      JspApplicationContextImpl jspContext = webApp.getJspApplicationContext();

      if (_elResolver == null) {
        ELResolver[] resolverArray = jspContext.getELResolverArray();
        _elResolver = new PageContextELResolver(this, resolverArray);
      }

      if (_functionMapper == null)
        _functionMapper = new PageFunctionMapper();

      if (_variableMapper == null)
        _variableMapper = new PageVariableMapper();

      _elContextValue = new PageELContext();

      if (_elContextListeners == null)
        _elContextListeners = jspContext.getELListenerArray();
    }

    _elContext = _elContextValue;

    if (_elContextListeners.length > 0) {
View Full Code Here

Examples of com.caucho.jsp.el.JspApplicationContextImpl

        String baseValue = _controller.getRepository().getTagRoot(baseTag);

        _invocationDependency.add(new RepositoryDependency(baseTag, baseValue));
      }

      _jspApplicationContext = new JspApplicationContextImpl(this);

      // validation
      if (CauchoSystem.isTesting()) {
      }
      else if (_appDir.equals(CauchoSystem.getResinHome())) {
View Full Code Here

Examples of org.apache.jasper.runtime.JspApplicationContextImpl

         jspAppContext.addELResolver(beanManager.getELResolver());

         jspAppContext.addELContextListener(Reflections.<ELContextListener>newInstance("org.jboss.weld.el.WeldELContextListener"));

         // Hack into JBoss Web/Catalina to replace the ExpressionFactory
         JspApplicationContextImpl wrappedJspApplicationContextImpl = new WeldJspApplicationContextImpl(JspApplicationContextImpl.getInstance(sce.getServletContext()), beanManager.wrapExpressionFactory(jspAppContext.getExpressionFactory()));
         sce.getServletContext().setAttribute(JspApplicationContextImpl.class.getName(), wrappedJspApplicationContextImpl);
      }
      // otherwise something went wrong starting WB, so don't register with JSP
   }
View Full Code Here

Examples of org.apache.jasper.runtime.JspApplicationContextImpl

                    jspAppContext.addELContextListener(Reflections.<ELContextListener> newInstance(
                            "org.jboss.weld.el.WeldELContextListener", getClass().getClassLoader()));

                    // Hack into JBoss Web/Catalina to replace the ExpressionFactory
                    JspApplicationContextImpl wrappedJspApplicationContextImpl = new WeldJspApplicationContextImpl(
                            JspApplicationContextImpl.getInstance(sre.getServletContext()), beanManager
                                    .wrapExpressionFactory(jspAppContext.getExpressionFactory()));
                    sre.getServletContext().setAttribute(JspApplicationContextImpl.class.getName(),
                            wrappedJspApplicationContextImpl);
                }
View Full Code Here

Examples of org.apache.jasper.runtime.JspApplicationContextImpl

                    jspAppContext.addELContextListener(Reflections.<ELContextListener> newInstance(
                            "org.jboss.weld.el.WeldELContextListener", getClass().getClassLoader()));

                    // Hack into JBoss Web/Catalina to replace the ExpressionFactory
                    JspApplicationContextImpl wrappedJspApplicationContextImpl = new WeldJspApplicationContextImpl(
                            JspApplicationContextImpl.getInstance(sre.getServletContext()), beanManager
                                    .wrapExpressionFactory(jspAppContext.getExpressionFactory()));
                    sre.getServletContext().setAttribute(JspApplicationContextImpl.class.getName(),
                            wrappedJspApplicationContextImpl);
                }
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.