@Service public class ClassLoaderHierarchyImpl extends Object implements ClassLoaderHierarchy
| Constructor and Description |
|---|
ClassLoaderHierarchyImpl() |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
createApplicationParentCL(ClassLoader parent,
DeploymentContext context)
Sets up the parent class loader for the application class loader.
|
ClassLoader |
getAPIClassLoader()
Returns a ClassLoader that can load classes exported by any OSGi bundle
in the system for public use.
|
DelegatingClassLoader.ClassFinder |
getAppLibClassFinder(List<URI> libURIs)
Returns ApplibClassFinder.
|
ClassLoader |
getAppLibClassLoader(String application,
List<URI> libURIs)
Returns AppLibClassLoader.
|
ClassLoader |
getCommonClassLoader()
Returns a class loader that is common to all deployed applications.
|
String |
getCommonClassPath()
Returns the classpath equiavalent to what is used by classloader
returned by
ClassLoaderHierarchy.getCommonClassLoader(). |
DelegatingClassLoader |
getConnectorClassLoader(String application)
Returns the class loader which has visibility to appropriate list of
standalone RARs deployed in the server.
|
public ClassLoader getAPIClassLoader()
ClassLoaderHierarchygetAPIClassLoader in interface ClassLoaderHierarchypublic ClassLoader getCommonClassLoader()
ClassLoaderHierarchygetCommonClassLoader in interface ClassLoaderHierarchyClassLoaderHierarchy.getAPIClassLoader()public String getCommonClassPath()
ClassLoaderHierarchyClassLoaderHierarchy.getCommonClassLoader(). Classpath entries are
separated by File.separatorChar, but don't assume
there will be any leading or trailing separator char. It returns
an empty string if there are no libraries installed.getCommonClassPath in interface ClassLoaderHierarchyFile.pathSeparatorCharpublic DelegatingClassLoader getConnectorClassLoader(String application)
ClassLoaderHierarchygetConnectorClassLoader in interface ClassLoaderHierarchyapplication - Application whose class loader hierarchy is being setpublic ClassLoader getAppLibClassLoader(String application, List<URI> libURIs) throws MalformedURLException
ClassLoaderHierarchygetAppLibClassLoader in interface ClassLoaderHierarchyapplication - Application for which this class loader is createdlibURIs - list of URIs, where each URI represent a libraryMalformedURLException#getAppLibClassFinder(List) public DelegatingClassLoader.ClassFinder getAppLibClassFinder(List<URI> libURIs) throws MalformedURLException
ClassLoaderHierarchygetAppLibClassFinder in interface ClassLoaderHierarchylibURIs - list of URIs, where each URI represent a libraryMalformedURLException#getAppLibClassLoader(String, List) public ClassLoader createApplicationParentCL(ClassLoader parent, DeploymentContext context) throws com.sun.enterprise.module.ResolveError
createApplicationParentCL in interface ClassLoaderHierarchyparent - the parent class loadercontext - deployment contextcom.sun.enterprise.module.ResolveError - if one of the deployer's public API module is not found.Copyright © 2017. All rights reserved.