All Packages Class Hierarchy This Package Previous Next Index
Interface org.apache.tomcat.core.ServletLoader
- public interface ServletLoader
Handle servlet and resource reloading
-
addRepository(File)
- Add a new directory or jar to the class loader.
-
addRepository(URL)
- Add a new remote repository.
-
getClassLoader()
- Return a real class loader
-
getClassPath()
- Return the class loader view of the class path
-
loadClass(String)
- Handle servlet loading.
-
reload()
- Reset the class loader.
-
shouldReload()
- Check if we need to reload.
-
shouldReload(String)
- Check if we need to reload one particular class.
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.
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.
reload
public abstract void reload()
- Reset the class loader. The caller should take all actions
required by this step ( free resources for GC, etc)
getClassLoader
public abstract ClassLoader getClassLoader()
- Return a real class loader
loadClass
public abstract Class loadClass(String name) throws ClassNotFoundException
- Handle servlet loading. Same as getClassLoader().loadClass(name, true);
getClassPath
public abstract String getClassPath()
- Return the class loader view of the class path
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.
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