org.apache.struts2
Class ServletCache
java.lang.Object
org.apache.struts2.ServletCache
public class ServletCache
- extends Object
Caches servlet instances by jsp location. If a requested jsp is not in the cache, "get"
will block and wait for the jsp to be loaded
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected final ConcurrentMap<String,Future<javax.servlet.Servlet>> cache
ServletCache
public ServletCache()
clear
public void clear()
get
public javax.servlet.Servlet get(String location)
throws InterruptedException
- Throws:
InterruptedException
launderThrowable
public static RuntimeException launderThrowable(Throwable t)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.