public class ConnectorClassLoader extends ASURLClassLoader
ASURLClassLoader.SentinelInputStream, ASURLClassLoader.URLEntrycurrentBeforeParentEnabled, PARENT_CLASSLOADER_DELEGATE_PROPERTYSET_EE_POLICY| Modifier and Type | Method and Description |
|---|---|
void |
addResourceAdapter(String rarName,
String moduleDir)
Adds the requested resource adapter to the ConnectorClassLoader.
|
String |
getClasspath()
Returns all the resources of the connector classloaders in the chain,
concatenated to a classpath string.
|
static ConnectorClassLoader |
getInstance() |
static ConnectorClassLoader |
getInstance(ClassLoader parent)
Initializes this singleton with the given parent class loader
if not already created.
|
Class |
loadClass(String name,
boolean resolve)
Local-first class loading, instead of parent-first as the ClassLoader.loadClass() does
|
void |
removeResourceAdapter(String moduleName)
Removes the resource adapter's class loader from the classloader linked
list
|
addDeclaredPermissions, addEEPermissions, addTransformer, addURL, appendURL, appendURL, copy, done, findClass, findClassData, findResource, findResources, getClassLoaderName, getPermissions, getResourceAsStream, getURLs, isDone, preDestroy, refresh, toStringdisableCurrentBeforeParent, enableCurrentBeforeParent, enableCurrentBeforeParentUnconditional, isWhiteListed, isWhitelistEnabledclose, definePackage, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic static ConnectorClassLoader getInstance()
public static ConnectorClassLoader getInstance(ClassLoader parent)
parent - parent class loaderpublic void addResourceAdapter(String rarName, String moduleDir)
rarName - the resourceAdapter module name to addmoduleDir - the directory location where the RAR contents are explodedpublic void removeResourceAdapter(String moduleName)
moduleName - the connector module that needs to be removed.public Class loadClass(String name, boolean resolve) throws ClassNotFoundException
CurrentBeforeParentClassLoaderloadClass in class CurrentBeforeParentClassLoaderClassNotFoundExceptionpublic String getClasspath()
getClasspath in class ASURLClassLoaderCopyright © 2019. All rights reserved.