public class ConnectorClassLoader extends ASURLClassLoader
ASURLClassLoader.SentinelInputStream, ASURLClassLoader.URLEntry
currentBeforeParentEnabled, PARENT_CLASSLOADER_DELEGATE_PROPERTY
SET_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, toString
disableCurrentBeforeParent, enableCurrentBeforeParent, enableCurrentBeforeParentUnconditional, isWhiteListed, isWhitelistEnabled
close, definePackage, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public 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
CurrentBeforeParentClassLoader
loadClass
in class CurrentBeforeParentClassLoader
ClassNotFoundException
public String getClasspath()
getClasspath
in class ASURLClassLoader
Copyright © 2019. All rights reserved.