org.jboss.web.tomcat.tc5
Class WebCtxLoader

java.lang.Object
  extended byorg.jboss.web.tomcat.tc5.WebCtxLoader

public class WebCtxLoader
extends java.lang.Object

Initial version of a JBoss implementation of the Tomcat Loader.


Field Summary
protected  org.jboss.web.tomcat.tc5.WebCtxLoader.ENCLoader ctxLoader
          The ClassLoader returned from getClassLoader
protected  RepositoryClassLoader (src) delegate
          The war UCL used to load the war classes
protected  java.lang.ClassLoader encLoader
          The ClassLoader used to scope the ENC
protected  java.net.URL warURL
           
protected  Container webContainer
           
 
Method Summary
 void addLifecycleListener(LifecycleListener listener)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void addRepository(java.lang.String repository)
           
 void backgroundProcess()
           
 LifecycleListener[] findLifecycleListeners()
           
 java.lang.String[] findRepositories()
           
 java.lang.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.
 Container getContainer()
           
 boolean getDelegate()
           
 java.lang.String getInfo()
           
 boolean getReloadable()
           
 boolean modified()
           
 void removeLifecycleListener(LifecycleListener listener)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setContainer(Container container)
           
 void setDelegate(boolean delegate)
           
 void setReloadable(boolean reloadable)
           
 void setWarURL(java.net.URL warURL)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encLoader

protected java.lang.ClassLoader encLoader
The ClassLoader used to scope the ENC


ctxLoader

protected org.jboss.web.tomcat.tc5.WebCtxLoader.ENCLoader ctxLoader
The ClassLoader returned from getClassLoader


delegate

protected RepositoryClassLoader (src)  delegate
The war UCL used to load the war classes


webContainer

protected Container webContainer

warURL

protected java.net.URL warURL
Method Detail

setWarURL

public void setWarURL(java.net.URL warURL)
               throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

addLifecycleListener

public void addLifecycleListener(LifecycleListener listener)

findLifecycleListeners

public LifecycleListener[] findLifecycleListeners()

removeLifecycleListener

public void removeLifecycleListener(LifecycleListener listener)

start

public void start()
           throws LifecycleException
Throws:
LifecycleException

stop

public void stop()
          throws LifecycleException
Throws:
LifecycleException

backgroundProcess

public void backgroundProcess()

getClassLoader

public java.lang.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.

Returns:
The ENC scoping class loader
See Also:
org.apache.naming.resources.DirContextURLStreamHandler

getContainer

public Container getContainer()

setContainer

public void setContainer(Container container)

getDelegate

public boolean getDelegate()

setDelegate

public void setDelegate(boolean delegate)

getInfo

public java.lang.String getInfo()

getReloadable

public boolean getReloadable()

setReloadable

public void setReloadable(boolean reloadable)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

addRepository

public void addRepository(java.lang.String repository)

findRepositories

public java.lang.String[] findRepositories()

modified

public boolean modified()

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)