org.apache.tomcat.maven.common.run
Class ExternalRepositoriesReloadableWebappLoader

java.lang.Object
  extended by org.apache.catalina.util.LifecycleBase
      extended by org.apache.catalina.util.LifecycleMBeanBase
          extended by org.apache.catalina.loader.WebappLoader
              extended by 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

Field Summary
 
Fields inherited from class org.apache.catalina.loader.WebappLoader
sm, support
 
Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase
mserver
 
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
 
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
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
 
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.