|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface ClassLoaderHierarchy
This class is responsible foe creation of class loader hierarchy of an application.
| Method Summary | |
|---|---|
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 getCommonClassLoader(). |
DelegatingClassLoader |
getConnectorClassLoader(String application)
Returns the class loader which has visibility to appropriate list of standalone RARs deployed in the server. |
| Method Detail |
|---|
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 set
ClassLoader 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 library
MalformedURLException#getAppLibClassFinder(List)
DelegatingClassLoader.ClassFinder getAppLibClassFinder(List<URI> libURIs)
throws MalformedURLException
libURIs - list of URIs, where each URI represent a library
MalformedURLException#getAppLibClassLoader(String, List)
ClassLoader createApplicationParentCL(ClassLoader parent,
DeploymentContext context)
throws com.sun.enterprise.module.ResolveError
parent - the parent class loadercontext - deployment context
com.sun.enterprise.module.ResolveError - if one of the deployer's public API module is not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||