@Override public void destroy() { if (wrapper != null && wrapper == JspFactory.getDefaultFactory()) { JspFactory.setDefaultFactory(defaultFactory); } }
@Override public void destroy() { if (wrapper != null && wrapper == JspFactory.getDefaultFactory()) { JspFactory.setDefaultFactory(defaultFactory); } }
/** * Sets the default <code>JspFactory</code> by calling * <code>JspFactory.setDefaultFactory()</code>. * @param jspFactory the <code>JspFactory</code> */ public void setDefaultJspFactory(JspFactory jspFactory) { JspFactory.setDefaultFactory(jspFactory); this.jspFactory = jspFactory; setUpJspFactory(); }
/** * Sets the default <code>JspFactory</code> by calling * <code>JspFactory.setDefaultFactory()</code>. * @param jspFactory the <code>JspFactory</code> */ public void setDefaultJspFactory(JspFactory jspFactory) { JspFactory.setDefaultFactory(jspFactory); this.jspFactory = jspFactory; setUpJspFactory(); }
/** * Sets the default <code>JspFactory</code> by calling * <code>JspFactory.setDefaultFactory()</code>. * @param jspFactory the <code>JspFactory</code> */ public void setDefaultJspFactory(JspFactory jspFactory) { JspFactory.setDefaultFactory(jspFactory); this.jspFactory = jspFactory; setUpJspFactory(); }
/** * Static initialization */ public static void initStatic() { if (JspFactory.getDefaultFactory() == null) JspFactory.setDefaultFactory(new QJspFactory()); }
private static synchronized void setJspFactory() { if (JspFactory.getDefaultFactory() == null) { JspFactory.setDefaultFactory(new JspFactoryImpl()); } }
public JspManager() { if (JspFactory.getDefaultFactory() == null) JspFactory.setDefaultFactory(new QJspFactory()); }
/** * Unwraps the default JSP factory and restore the original default if * it's an instance of the given {@code wrapperClass}. */ public static void unwrapDefaultJspFactory(Class<? extends JspFactoryWrapper> wrapperClass) { JspFactory factory = JspFactory.getDefaultFactory(); if (factory instanceof JspFactoryWrapper) { JspFactory.setDefaultFactory(((JspFactoryWrapper) factory).getDelegate()); } }
private void createMockObjects() { createNewMockObjects(true); context = createMockServletContext(); setUpDependencies(); JspFactory.setDefaultFactory(jspFactory); }
private void createMockObjects() { createNewMockObjects(true); context = createMockServletContext(); setUpDependencies(); JspFactory.setDefaultFactory(jspFactory); }
protected MockJspWriter configureJspFactory(ServletContext httpContext, HttpServletRequest httpRequest, HttpSession httpSession) { MockJspWriter jspWriter = new MockJspWriter(); pageContext = configurePageContext(httpContext, httpRequest, httpSession, jspWriter); JspFactory.setDefaultFactory(new MockJspFactory(pageContext)); return jspWriter; }
private void createMockObjects() { createNewMockObjects(true); context = createMockServletContext(); setUpDependencies(); JspFactory.setDefaultFactory(jspFactory); }
private void createMockObjectsBasedOn(WebMockObjectFactory factory, boolean createNewSession) { createNewMockObjects(createNewSession); if(!createNewSession) session = factory.getMockSession(); context = factory.getMockServletContext(); setUpDependencies(); JspFactory.setDefaultFactory(jspFactory); }
private void createMockObjectsBasedOn(WebMockObjectFactory factory, boolean createNewSession) { createNewMockObjects(createNewSession); if(!createNewSession) session = factory.getMockSession(); context = factory.getMockServletContext(); setUpDependencies(); JspFactory.setDefaultFactory(jspFactory); }
private void createMockObjectsBasedOn(WebMockObjectFactory factory, boolean createNewSession) { createNewMockObjects(createNewSession); if(!createNewSession) session = factory.getMockSession(); context = factory.getMockServletContext(); setUpDependencies(); JspFactory.setDefaultFactory(jspFactory); }
void initWebApp(WebApp context) { super.initWebApp(context); if (JspFactory.getDefaultFactory() == null) JspFactory.setDefaultFactory(new QJspFactory()); _xslManager = new XslManager(context); _jspManager = new JspManager(); _jspManager.initWebApp(context); }
protected MockJspWriter configureJspFactory(ServletContext httpContext, HttpServletRequest httpRequest, HttpSession httpSession) { pageContext = new MockPageContext(); pageContext.setRequest(httpRequest); pageContext.setServletContext(httpContext); pageContext.setSession(httpSession); MockJspWriter jspWriter = new MockJspWriter(); pageContext.setJspWriter(jspWriter); JspFactory.setDefaultFactory(new MockJspFactory(pageContext)); return jspWriter; }
protected MockJspWriter configureJspFactory(ServletContext httpContext, HttpServletRequest httpRequest, HttpSession httpSession) { pageContext = new MockPageContext(); pageContext.setRequest(httpRequest); pageContext.setServletContext(httpContext); pageContext.setSession(httpSession); MockJspWriter jspWriter = new MockJspWriter(); pageContext.setJspWriter(jspWriter); JspFactory.setDefaultFactory(new MockJspFactory(pageContext)); return jspWriter; }
protected MockJspWriter configureJspFactory(ServletContext httpContext, HttpServletRequest httpRequest, HttpSession httpSession) { pageContext = new MockPageContext(); pageContext.setRequest(httpRequest); pageContext.setServletContext(httpContext); pageContext.setSession(httpSession); MockJspWriter jspWriter = new MockJspWriter(); pageContext.setJspWriter(jspWriter); JspFactory.setDefaultFactory(new MockJspFactory(pageContext)); return jspWriter; }