Package org.nuxeo.ecm.webengine.loader
Class ReloadingClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.nuxeo.ecm.webengine.loader.ReloadingClassLoader
-
public class ReloadingClassLoader extends ClassLoader
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description ReloadingClassLoader(ClassLoader pParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResourceStore(ResourceStore store)
void
clearAssertionStatus()
URL
getResource(String name)
InputStream
getResourceAsStream(String name)
Class<?>
loadClass(String name)
Class<?>
loadClass(String name, boolean resolve)
void
reload()
boolean
removeResourceStore(ResourceStore store)
void
setClassAssertionStatus(String className, boolean enabled)
void
setDefaultAssertionStatus(boolean enabled)
void
setPackageAssertionStatus(String packageName, boolean enabled)
-
Methods inherited from class java.lang.ClassLoader
defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, registerAsParallelCapable, resolveClass, resources, setSigners
-
-
-
-
Constructor Detail
-
ReloadingClassLoader
public ReloadingClassLoader(ClassLoader pParent)
-
-
Method Detail
-
addResourceStore
public void addResourceStore(ResourceStore store)
-
removeResourceStore
public boolean removeResourceStore(ResourceStore store)
-
reload
public void reload()
-
clearAssertionStatus
public void clearAssertionStatus()
- Overrides:
clearAssertionStatus
in classClassLoader
-
getResource
public URL getResource(String name)
- Overrides:
getResource
in classClassLoader
-
getResourceAsStream
public InputStream getResourceAsStream(String name)
- Overrides:
getResourceAsStream
in classClassLoader
-
loadClass
public Class<?> loadClass(String name) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
loadClass
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
setClassAssertionStatus
public void setClassAssertionStatus(String className, boolean enabled)
- Overrides:
setClassAssertionStatus
in classClassLoader
-
setDefaultAssertionStatus
public void setDefaultAssertionStatus(boolean enabled)
- Overrides:
setDefaultAssertionStatus
in classClassLoader
-
setPackageAssertionStatus
public void setPackageAssertionStatus(String packageName, boolean enabled)
- Overrides:
setPackageAssertionStatus
in classClassLoader
-
-