All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.apache.tomcat.core.ServletLoader

public interface ServletLoader
Handle servlet and resource reloading


Method Index

 o addRepository(File)
Add a new directory or jar to the class loader.
 o addRepository(URL)
Add a new remote repository.
 o getClassLoader()
Return a real class loader
 o getClassPath()
Return the class loader view of the class path
 o loadClass(String)
Handle servlet loading.
 o reload()
Reset the class loader.
 o shouldReload()
Check if we need to reload.
 o shouldReload(String)
Check if we need to reload one particular class.

Methods

 o shouldReload
 public abstract boolean shouldReload(String className)
Check if we need to reload one particular class. No check is done for dependent classes. The final decision about reloading is left to the caller.

 o shouldReload
 public abstract boolean shouldReload()
Check if we need to reload. All loaded classes are checked. The final decision about reloading is left to the caller.

 o reload
 public abstract void reload()
Reset the class loader. The caller should take all actions required by this step ( free resources for GC, etc)

 o getClassLoader
 public abstract ClassLoader getClassLoader()
Return a real class loader

 o loadClass
 public abstract Class loadClass(String name) throws ClassNotFoundException
Handle servlet loading. Same as getClassLoader().loadClass(name, true);

 o getClassPath
 public abstract String getClassPath()
Return the class loader view of the class path

 o addRepository
 public abstract void addRepository(File f)
Add a new directory or jar to the class loader. Not all loaders can add resources dynamically - that may require a reload.

 o addRepository
 public abstract void addRepository(URL url)
Add a new remote repository. Not all class loader will support remote resources, use File if it's a local resource.


All Packages  Class Hierarchy  This Package  Previous  Next  Index