org.apache.catalina.loader
public class VirtualWebappLoader extends WebappLoader
<Context docBase="\webapps\mydocbase">
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
virtualClasspath="/dir/classes;/somedir/somejar.jar;/somedir/*.jar"/>
</Context>
This is not meant to be used for production.
Its meant to ease development with IDE's without the
need for fully republishing jars in WEB-INF/lib
The *.jar suffix can be used to include all JAR files in a
certain directory. If a file or a directory does not exist, it will be
skipped.
lifecycle, sm, supportAFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
VirtualWebappLoader()
Construct a new WebappLoader with no defined parent class loader (so that
the actual parent will be the system class loader).
|
VirtualWebappLoader(java.lang.ClassLoader parent)
Construct a new WebappLoader with the specified class loader to be
defined as the parent of the ClassLoader we ultimately create.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setVirtualClasspath(java.lang.String path)
virtualClasspath attribute that will be automatically set
from the Context virtualClasspath attribute
from the context xml file. |
void |
start()
Start this component, initializing our associated class loader.
|
addLifecycleListener, addPropertyChangeListener, addRepository, backgroundProcess, closeJARs, destroy, findLifecycleListeners, findRepositories, getClassLoader, getClasspath, getContainer, getController, getDelegate, getInfo, getLoaderClass, getLoaderRepositories, getLoaderRepositoriesString, getReloadable, getRepositories, getRepositoriesString, getSearchExternalFirst, init, modified, postDeregister, postRegister, preDeregister, preRegister, propertyChange, removeLifecycleListener, removePropertyChangeListener, setContainer, setController, setDelegate, setLoaderClass, setReloadable, setSearchExternalFirst, stop, toStringpublic VirtualWebappLoader()
public VirtualWebappLoader(java.lang.ClassLoader parent)
parent - The parent class loaderpublic void setVirtualClasspath(java.lang.String path)
virtualClasspath attribute that will be automatically set
from the Context virtualClasspath attribute
from the context xml file.path - ; separated list of path elements.public void start()
throws LifecycleException
WebappLoaderstart in interface Lifecyclestart in class WebappLoaderLifecycleException - if a lifecycle error occursCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.