public class ClassLoaderManager extends Object
Constructor and Description |
---|
ClassLoaderManager(IbisContext ibisContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String currentConfigurationName) |
ClassLoader |
get(String configurationName)
Returns the ClassLoader for a specific configuration.
|
ClassLoader |
get(String configurationName,
String classLoaderType)
Returns the ClassLoader for a specific configuration.
|
void |
reload(ClassLoader classLoader)
Reuse class loader as it is difficult to have all
references to the class loader removed (see also
http://zeroturnaround.com/rebellabs/rjc201/).
|
void |
reload(String configurationName)
Reloads a configuration if it exists.
|
void |
shutdown()
Removes all created ClassLoaders
|
public ClassLoaderManager(IbisContext ibisContext)
public ClassLoader get(String configurationName) throws ClassLoaderException
configurationName
- to get the ClassLoader forClassLoaderException
- when a ClassLoader failed to initializepublic ClassLoader get(String configurationName, String classLoaderType) throws ClassLoaderException
configurationName
- to get the ClassLoader forclassLoaderType
- null or type of ClassLoader to loadClassLoaderException
- when a ClassLoader failed to initializepublic void reload(String configurationName) throws ClassLoaderException
reload(ClassLoader)
for more informationClassLoaderException
public void reload(ClassLoader classLoader) throws ClassLoaderException
ClassLoaderException
public boolean contains(String currentConfigurationName)
public void shutdown()
Copyright © 2023 Frank!Framework. All rights reserved.