org.apache.tomcat.maven.plugin.tomcat6
Class ExternalRepositoriesReloadableWebappLoader
java.lang.Object
org.apache.catalina.loader.WebappLoader
org.apache.tomcat.maven.plugin.tomcat6.ExternalRepositoriesReloadableWebappLoader
- All Implemented Interfaces:
- PropertyChangeListener, EventListener, MBeanRegistration, Lifecycle, Loader
public class ExternalRepositoriesReloadableWebappLoader
- extends WebappLoader
A WebappLoader implementation that allows scanning for changes to project classpath in support of
context reloads.
- Since:
- 2.0
- Author:
- Ryan Connolly
Methods inherited from class org.apache.catalina.loader.WebappLoader |
addLifecycleListener, addPropertyChangeListener, backgroundProcess, closeJARs, destroy, findLifecycleListeners, findRepositories, getClassLoader, getClasspath, getContainer, getController, getDelegate, getInfo, getLoaderClass, getLoaderRepositories, getLoaderRepositoriesString, getReloadable, getRepositories, getRepositoriesString, getSearchExternalFirst, init, postDeregister, postRegister, preDeregister, preRegister, propertyChange, removeLifecycleListener, removePropertyChangeListener, setContainer, setController, setDelegate, setLoaderClass, setReloadable, setSearchExternalFirst, start, stop, toString |
ExternalRepositoriesReloadableWebappLoader
public ExternalRepositoriesReloadableWebappLoader()
- Default Constructor.
ExternalRepositoriesReloadableWebappLoader
public ExternalRepositoriesReloadableWebappLoader(ClassLoader parent,
Log log)
- Convenience Constructor allows setting of a parent ClassLoader.
- Parameters:
parent
- the ClassLoader instance to set as this Loader's parent ClassLoader.
addRepository
public void addRepository(String repository)
-
- Specified by:
addRepository
in interface Loader
- Overrides:
addRepository
in class WebappLoader
modified
public boolean modified()
- Check if
WebappLoader
says modified(), if not then check files from added repositories.
- Specified by:
modified
in interface Loader
- Overrides:
modified
in class WebappLoader
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.