org.apache.struts2
Class ServletCache
java.lang.Object
org.apache.struts2.ServletCache
public class ServletCache
- extends java.lang.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
Field Summary |
protected java.util.concurrent.ConcurrentMap<java.lang.String,java.util.concurrent.Future<javax.servlet.Servlet>> |
cache
|
Method Summary |
void |
clear()
|
javax.servlet.Servlet |
get(java.lang.String location)
|
static java.lang.RuntimeException |
launderThrowable(java.lang.Throwable t)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected final java.util.concurrent.ConcurrentMap<java.lang.String,java.util.concurrent.Future<javax.servlet.Servlet>> cache
ServletCache
public ServletCache()
clear
public void clear()
get
public javax.servlet.Servlet get(java.lang.String location)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
launderThrowable
public static java.lang.RuntimeException launderThrowable(java.lang.Throwable t)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.