org.apache.tomcat.maven.plugin.tomcat6
Class ExternalRepositoriesReloadableWebappLoader

java.lang.Object
  extended by org.apache.catalina.loader.WebappLoader
      extended by 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
Version:
$Id: ExternalRepositoriesReloadableWebappLoader.html 1305321 2012-03-26 12:01:12Z olamy $
Author:
Ryan Connolly

Field Summary
 
Fields inherited from class org.apache.catalina.loader.WebappLoader
lifecycle, sm, support
 
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
ExternalRepositoriesReloadableWebappLoader()
          Default Constructor.
ExternalRepositoriesReloadableWebappLoader(ClassLoader parent, Log log)
          Convenience Constructor allows setting of a parent ClassLoader.
 
Method Summary
 void addRepository(String repository)
          
 boolean modified()
          Check if WebappLoader says modified(), if not then check files from added repositories.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.