public abstract class BytesClassLoader extends ClassLoaderBase
IConfigurationClassLoader.ReportLevel
log
CLASSPATH_RESOURCE_SCHEME
Modifier | Constructor and Description |
---|---|
protected |
BytesClassLoader(ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
clearResources()
Clears all resources
|
void |
configure(IbisContext ibisContext,
String configurationName)
Configure the
IConfigurationClassLoader 's implementation |
void |
destroy()
Called upon destroying (and thus removing) the IConfigurationClassLoader
|
URL |
getLocalResource(String name) |
protected abstract Map<String,byte[]> |
loadResources()
Called during a reload for a green/blue deployment, and after the classloader has been configured to load new resources
|
void |
reload()
Tries to load new resources, upon success, clears all resources, calls it's super.reload() and sets the new resources
|
getAllowCustomClasses, getBasePath, getConfigurationFile, getConfigurationName, getIbisContext, getReportLevel, getResource, getResource, getResources, loadClass, setAllowCustomClasses, setBasePath, setConfigurationFile, setReportLevel, toString
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
protected BytesClassLoader(ClassLoader classLoader)
public final void configure(IbisContext ibisContext, String configurationName) throws ClassLoaderException
IConfigurationClassLoader
IConfigurationClassLoader
's implementationconfigure
in interface IConfigurationClassLoader
configure
in class ClassLoaderBase
ClassLoaderException
- when the IConfigurationClassLoader
's implementation cannot retrieve or load the configuration filespublic URL getLocalResource(String name)
getLocalResource
in class ClassLoaderBase
name
- of the file to search for in the current local classpathNULL
when the file cannot be foundpublic final void reload() throws ClassLoaderException
reload
in interface IConfigurationClassLoader
reload
in class ClassLoaderBase
ClassLoaderException
public final void destroy()
IConfigurationClassLoader
destroy
in interface IConfigurationClassLoader
destroy
in class ClassLoaderBase
protected abstract Map<String,byte[]> loadResources() throws ClassLoaderException
ClassLoaderException
public final void clearResources()
Copyright © 2023 Frank!Framework. All rights reserved.