org.apache.tomcat.maven.common.run
Class ExternalRepositoriesReloadableWebappLoader
java.lang.Object
org.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.loader.WebappLoader
org.apache.tomcat.maven.common.run.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
- Version:
- $Id: ExternalRepositoriesReloadableWebappLoader.html 1305321 2012-03-26 12:01:12Z olamy $
- Author:
- Ryan Connolly
Fields inherited from interface org.apache.catalina.Lifecycle |
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
Methods inherited from class org.apache.catalina.loader.WebappLoader |
addPropertyChangeListener, backgroundProcess, closeJARs, findRepositories, getClassLoader, getClasspath, getContainer, getDelegate, getDomainInternal, getInfo, getLoaderClass, getLoaderRepositories, getLoaderRepositoriesString, getObjectNameKeyProperties, getReloadable, getRepositories, getRepositoriesString, getSearchExternalFirst, propertyChange, removePropertyChangeListener, setContainer, setDelegate, setLoaderClass, setReloadable, setSearchExternalFirst, startInternal, stopInternal, toString |
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase |
destroyInternal, getDomain, getObjectName, initInternal, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister |
Methods inherited from class org.apache.catalina.util.LifecycleBase |
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop |
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.