Save This Page
Home » JBoss-5.1.0 » org » jboss » web » tomcat » tc4 » [javadoc | source]
org.jboss.web.tomcat.tc4
public class: WebCtxLoader [javadoc | source]
java.lang.Object
   org.jboss.web.tomcat.tc4.WebCtxLoader

All Implemented Interfaces:
    org.apache.catalina.Loader, org.apache.catalina.Lifecycle

Initial version of a JBoss implementation of the Tomcat Loader.
Nested Class Summary:
static class  WebCtxLoader.ENCLoader  A trival extension of URLClassLoader that uses an empty URL[] as its classpath so that all work is delegated to its parent. 
Field Summary
protected  ClassLoader encLoader    The ClassLoader used to scope the ENC 
protected  ENCLoader ctxLoader    The ClassLoader returned from getClassLoader 
protected  UnifiedClassLoader delegate    The war UCL used to load the war classes 
protected  Container webContainer     
protected  URL warURL     
Constructor:
 WebCtxLoader(ClassLoader encLoader) 
    Create a WebCtxLoader given the ENC scoping class loader.
    Parameters:
    encLoader -
Method from org.jboss.web.tomcat.tc4.WebCtxLoader Summary:
addLifecycleListener,   addPropertyChangeListener,   addRepository,   findLifecycleListeners,   findRepositories,   getClassLoader,   getContainer,   getDefaultContext,   getDelegate,   getInfo,   getReloadable,   modified,   removeLifecycleListener,   removePropertyChangeListener,   setContainer,   setDefaultContext,   setDelegate,   setReloadable,   setWarURL,   start,   stop
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.web.tomcat.tc4.WebCtxLoader Detail:
 public  void addLifecycleListener(LifecycleListener listener) 
 public  void addPropertyChangeListener(PropertyChangeListener listener) 
 public  void addRepository(String repository) 
 public LifecycleListener[] findLifecycleListeners() 
 public String[] findRepositories() 
 public ClassLoader getClassLoader() 
    We must pass the wrapped encLoader as tomcat needs to see a unique class loader that is distinct from the thread context class loader seen to be in effect when the web app is started. This is due to how it binds contexts using the DirContextURLStreamHandler class.
 public Container getContainer() 
 public DefaultContext getDefaultContext() 
 public boolean getDelegate() 
 public String getInfo() 
 public boolean getReloadable() 
 public boolean modified() 
 public  void removeLifecycleListener(LifecycleListener listener) 
 public  void removePropertyChangeListener(PropertyChangeListener listener) 
 public  void setContainer(Container container) 
 public  void setDefaultContext(DefaultContext defaultContext) 
 public  void setDelegate(boolean delegate) 
 public  void setReloadable(boolean reloadable) 
 public  void setWarURL(URL warURL) throws MalformedURLException 
 public  void start() throws LifecycleException 
 public  void stop() throws LifecycleException