Example usage for javax.servlet.jsp PageContext release

List of usage examples for javax.servlet.jsp PageContext release

Introduction

In this page you can find the example usage for javax.servlet.jsp PageContext release.

Prototype


abstract public void release();

Source Link

Document

This method shall "reset" the internal state of a PageContext, releasing all internal references, and preparing the PageContext for potential reuse by a later invocation of initialize().

Usage

From source file:org.apache.jasper.runtime.JspFactoryImpl.java

private void internalReleasePageContext(PageContext pc) {
    pc.release();
    if (USE_POOL && (pc instanceof PageContextImpl)) {
        pool.put(pc);/*ww  w  . ja va 2s. c  o  m*/
    }
}

From source file:org.tinygroup.jspengine.runtime.JspFactoryImpl.java

private void internalReleasePageContext(PageContext pc) {
    pc.release();
    if (USE_POOL && (pc instanceof PageContextImpl)) {
        LinkedList<PageContext> pcPool = (LinkedList<PageContext>) pool.get();
        pcPool.addFirst(pc);/*w w w .j  av a2  s.c  o m*/
    }
}