Java 类javax.servlet.jsp.JspApplicationContext 实例源码

项目:tomcat7    文件:JspFactoryImpl.java   
@Override
public JspApplicationContext getJspApplicationContext(
        final ServletContext context) {
    if (Constants.IS_SECURITY_ENABLED) {
        return AccessController.doPrivileged(
                new PrivilegedAction<JspApplicationContext>() {
            @Override
            public JspApplicationContext run() {
                return JspApplicationContextImpl.getInstance(context);
            }
        });
    } else {
        return JspApplicationContextImpl.getInstance(context);
    }
}
项目:apache-tomcat-7.0.73-with-comment    文件:JspFactoryImpl.java   
@Override
public JspApplicationContext getJspApplicationContext(
        final ServletContext context) {
    if (Constants.IS_SECURITY_ENABLED) {
        return AccessController.doPrivileged(
                new PrivilegedAction<JspApplicationContext>() {
            @Override
            public JspApplicationContext run() {
                return JspApplicationContextImpl.getInstance(context);
            }
        });
    } else {
        return JspApplicationContextImpl.getInstance(context);
    }
}
项目:lazycat    文件:JspFactoryImpl.java   
@Override
public JspApplicationContext getJspApplicationContext(final ServletContext context) {
    if (Constants.IS_SECURITY_ENABLED) {
        return AccessController.doPrivileged(new PrivilegedAction<JspApplicationContext>() {
            @Override
            public JspApplicationContext run() {
                return JspApplicationContextImpl.getInstance(context);
            }
        });
    } else {
        return JspApplicationContextImpl.getInstance(context);
    }
}
项目:beyondj    文件:JspFactoryImpl.java   
@Override
public JspApplicationContext getJspApplicationContext(
        final ServletContext context) {
    if (Constants.IS_SECURITY_ENABLED) {
        return AccessController.doPrivileged(
                new PrivilegedAction<JspApplicationContext>() {
            @Override
            public JspApplicationContext run() {
                return JspApplicationContextImpl.getInstance(context);
            }
        });
    } else {
        return JspApplicationContextImpl.getInstance(context);
    }
}
项目:ward    文件:CommonConfiguration.java   
@Override
public void setServletContext(ServletContext servletContext) {
    super.setServletContext(servletContext);
    DynamicELResolver elResolver = (DynamicELResolver) servletContext
            .getAttribute(EL_RESOLVER_KEY);
    if (elResolver == null) {
        elResolver = new DynamicELResolver();
        JspFactory jspFactory = JspFactory.getDefaultFactory();
        JspApplicationContext jspContext = jspFactory
                .getJspApplicationContext(servletContext);
        jspContext.addELResolver(elResolver);
        servletContext.setAttribute(EL_RESOLVER_KEY, elResolver);
    }
    elResolver.setBeanFactory(this.beanFactory);
}
项目:class-guard    文件:JspFactoryImpl.java   
@Override
public JspApplicationContext getJspApplicationContext(
        final ServletContext context) {
    if (Constants.IS_SECURITY_ENABLED) {
        return AccessController.doPrivileged(
                new PrivilegedAction<JspApplicationContext>() {
            @Override
            public JspApplicationContext run() {
                return JspApplicationContextImpl.getInstance(context);
            }
        });
    } else {
        return JspApplicationContextImpl.getInstance(context);
    }
}
项目:TechnologyReadinessTool    文件:CoreServletContextListener.java   
@Override
public void contextInitialized(ServletContextEvent sce) {
    JspApplicationContext jspApplicationContext = JspFactory.getDefaultFactory().getJspApplicationContext(
            sce.getServletContext());
    jspApplicationContext.addELResolver(new StrutsActionELResolver());
    jspApplicationContext.addELResolver(new ExtendedAttributeELResolver());
    jspApplicationContext.addELResolver(new MultimapELResolver());
}
项目:apache-tomcat-7.0.57    文件:JspFactoryImpl.java   
@Override
public JspApplicationContext getJspApplicationContext(
        final ServletContext context) {
    if (Constants.IS_SECURITY_ENABLED) {
        return AccessController.doPrivileged(
                new PrivilegedAction<JspApplicationContext>() {
            @Override
            public JspApplicationContext run() {
                return JspApplicationContextImpl.getInstance(context);
            }
        });
    } else {
        return JspApplicationContextImpl.getInstance(context);
    }
}
项目:apache-tomcat-7.0.57    文件:JspFactoryImpl.java   
@Override
public JspApplicationContext getJspApplicationContext(
        final ServletContext context) {
    if (Constants.IS_SECURITY_ENABLED) {
        return AccessController.doPrivileged(
                new PrivilegedAction<JspApplicationContext>() {
            @Override
            public JspApplicationContext run() {
                return JspApplicationContextImpl.getInstance(context);
            }
        });
    } else {
        return JspApplicationContextImpl.getInstance(context);
    }
}
项目:WBSAirback    文件:JspFactoryImpl.java   
@Override
public JspApplicationContext getJspApplicationContext(
        final ServletContext context) {
    if (Constants.IS_SECURITY_ENABLED) {
        return AccessController.doPrivileged(
                new PrivilegedAction<JspApplicationContext>() {
            @Override
            public JspApplicationContext run() {
                return JspApplicationContextImpl.getInstance(context);
            }
        });
    } else {
        return JspApplicationContextImpl.getInstance(context);
    }
}
项目:tomee    文件:OpenEJBLifecycle.java   
/**
 * On Tomcat we need to sometimes force a class load to get our hands on the JspFactory
 */
private static void setJspELFactory(ServletContext startupObject, ELResolver resolver)
{
    JspFactory factory = JspFactory.getDefaultFactory();
    if (factory == null)
    {
        try
        {
            try {
                Class.forName("org.apache.jasper.servlet.JasperInitializer");
            } catch (final Throwable th) {
                Class.forName("org.apache.jasper.compiler.JspRuntimeContext");
            }
            factory = JspFactory.getDefaultFactory();
        }
        catch (Exception e)
        {
            // ignore
        }

    }

    if (factory != null)
    {
        JspApplicationContext applicationCtx = factory.getJspApplicationContext(startupObject);
        applicationCtx.addELResolver(resolver);
    }
    else
    {
        logger.debug("Default JSPFactroy instance has not found. Skipping OWB JSP handling");
    }
}
项目:lams    文件:JspFactoryImpl.java   
public JspApplicationContext getJspApplicationContext(ServletContext context) {
    return JspApplicationContextImpl.getInstance(context);
}
项目:beyondj    文件:Jsp21ExpressionExecutor.java   
/** Creates an ExpressionFactory using the JspApplicationContext. */
protected ExpressionFactory getExpressionFactory() {
    ServletContext ctx = StripesFilter.getConfiguration().getServletContext();
    JspApplicationContext jspCtx = JspFactory.getDefaultFactory().getJspApplicationContext(ctx);
    return jspCtx.getExpressionFactory();
}
项目:packagedrone    文件:JspFactoryImpl.java   
public JspApplicationContext getJspApplicationContext
        (ServletContext context) {
    return JspApplicationContextImpl.findJspApplicationContext(context);
}
项目:Lucee    文件:CFMLFactoryImpl.java   
@Override
public JspApplicationContext getJspApplicationContext(ServletContext arg0) {
    throw new RuntimeException("not supported!");
}
项目:package-drone    文件:JspFactoryImpl.java   
public JspApplicationContext getJspApplicationContext
        (ServletContext context) {
    return JspApplicationContextImpl.findJspApplicationContext(context);
}
项目:stripes    文件:Jsp21ExpressionExecutor.java   
/** Creates an ExpressionFactory using the JspApplicationContext. */
protected ExpressionFactory getExpressionFactory() {
    ServletContext ctx = StripesFilter.getConfiguration().getServletContext();
    JspApplicationContext jspCtx = JspFactory.getDefaultFactory().getJspApplicationContext(ctx);
    return jspCtx.getExpressionFactory();
}
项目:stripesframework    文件:Jsp21ExpressionExecutor.java   
/** Creates an ExpressionFactory using the JspApplicationContext. */
protected ExpressionFactory getExpressionFactory() {
    ServletContext ctx = StripesFilter.getConfiguration().getServletContext();
    JspApplicationContext jspCtx = JspFactory.getDefaultFactory().getJspApplicationContext(ctx);
    return jspCtx.getExpressionFactory();
}
项目:puzzle    文件:JspFactory.java   
/**
 * <p>
 * Obtain the <code>JspApplicationContext</code> instance that was associated
 * within the passed <code>ServletContext</code> for this web application.
 * </p>
 * 
 * @param context the current web application's <code>ServletContext</code>
 * @return <code>JspApplicationContext</code> instance
 * @since 2.1
 */
public abstract JspApplicationContext getJspApplicationContext(ServletContext context);