@Contract
public interface ClassLoaderHierarchy
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
createApplicationParentCL(ClassLoader parent,
org.glassfish.api.deployment.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
getCommonClassLoader(). |
DelegatingClassLoader |
getConnectorClassLoader(String application)
Returns the class loader which has visibility to appropriate list of
standalone RARs deployed in the server.
|
ClassLoader getAPIClassLoader()
ClassLoader getCommonClassLoader()
getAPIClassLoader()String getCommonClassPath()
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.File.pathSeparatorCharDelegatingClassLoader getConnectorClassLoader(String application)
application - Application whose class loader hierarchy is being setClassLoader getAppLibClassLoader(String application, List<URI> libURIs) throws MalformedURLException
application - Application for which this class loader is createdlibURIs - list of URIs, where each URI represent a libraryMalformedURLException#getAppLibClassFinder(List) DelegatingClassLoader.ClassFinder getAppLibClassFinder(List<URI> libURIs) throws MalformedURLException
libURIs - list of URIs, where each URI represent a libraryMalformedURLException#getAppLibClassLoader(String, List) ClassLoader createApplicationParentCL(ClassLoader parent, org.glassfish.api.deployment.DeploymentContext context) throws com.sun.enterprise.module.ResolveError
parent - 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.