|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.core.BaseInterceptor
org.apache.tomcat.modules.config.LoaderInterceptor11
Set class loader based on WEB-INF/classes, lib. Compatible with JDK1.1, but takes advantage of URLClassLoader if java2 is detected. Note. LoaderInterceptor must be the first in the reload and contextInit chains.
Field Summary |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
LoaderInterceptor11()
|
Method Summary | |
void |
addContext(ContextManager cm,
Context context)
Add all WEB-INF/classes and WEB-INF/lib to the context path |
protected java.lang.ClassLoader |
constructLoader(Context context)
Override this method to provide an alternate loader (or create a new interceptor ) |
void |
contextInit(Context ctx)
setup the ClassLoader for this context. |
void |
copyContext(Request req,
Context oldC,
Context newC)
Reload notification - called whenever a full reload is done. |
void |
engineInit(ContextManager cm)
Initialize the module. |
java.lang.Object |
getInfo(Context ctx,
Request req,
int info,
java.lang.String k)
Hook for lazy evaluation of request info. |
void |
prepareClassLoader(Context context)
Initialize the class loader. |
void |
reload(Request req,
Context context)
Construct another class loader, when the context is reloaded. |
void |
setAdditionalJars(java.lang.String jars)
List of additional jars to add to each web application. |
void |
setJarSeparator(java.lang.String sep)
Character to use to separate jars in the jaxpJars list. |
void |
setJaxp(boolean b)
Check if the webapp contains jaxp , and add one if not. |
void |
setJaxpDir(java.lang.String dir)
Directory where jaxp jars are installed. |
void |
setJaxpJars(java.lang.String jars)
Name of the jars that compose jaxp. |
void |
setLoader(java.lang.String name)
|
void |
setUse11Loader(boolean b)
Use the 1.1 loader even if running under Java2. |
void |
setUseApplicationLoader(boolean b)
Use ContextManager.getParentLoader() - typlically the class loader that is set by the application embedding tomcat. |
void |
setUseNoParent(boolean b)
Use no parent loader. |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextMap, contextShutdown, contextState, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getLog, getNote, getNote, handleError, log, log, log, log, postInitCheck, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preInitCheck, preService, preServletDestroy, preServletInit, registerHooks, removeContainer, removeContext, removeHandler, removeInterceptor, requestMap, sessionState, setContext, setContextManager, setDebug, setInfo, setNote, setNote |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoaderInterceptor11()
Method Detail |
public void setUseApplicationLoader(boolean b)
public void setUseNoParent(boolean b)
public void setUse11Loader(boolean b)
public void setJaxpDir(java.lang.String dir)
public void setJaxpJars(java.lang.String jars)
public void setAdditionalJars(java.lang.String jars)
public void setJarSeparator(java.lang.String sep)
public void setJaxp(boolean b)
public void setLoader(java.lang.String name)
public void engineInit(ContextManager cm) throws TomcatException
BaseInterceptor
engineInit
in class BaseInterceptor
TomcatException
- The module will not be added if any
exception is thrown by engineInit.public void addContext(ContextManager cm, Context context) throws TomcatException
addContext
in class BaseInterceptor
TomcatException
public void contextInit(Context ctx) throws TomcatException
contextInit
in class BaseInterceptor
TomcatException
public void copyContext(Request req, Context oldC, Context newC) throws TomcatException
BaseInterceptor
copyContext
in class BaseInterceptor
TomcatException
public void reload(Request req, Context context) throws TomcatException
reload
in class BaseInterceptor
TomcatException
public void prepareClassLoader(Context context) throws TomcatException
TomcatException
protected java.lang.ClassLoader constructLoader(Context context) throws TomcatException
TomcatException
public final java.lang.Object getInfo(Context ctx, Request req, int info, java.lang.String k)
BaseInterceptor
getInfo
in class BaseInterceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |