public interface BaseClassLoader extends BundleClassLoader
ClasspathManager
Modifier and Type | Method and Description |
---|---|
ClasspathEntry |
createClassPathEntry(BundleFile bundlefile,
ProtectionDomain cpDomain)
Creates a classpath entry with the given bundle file and domain
|
Class<?> |
defineClass(String name,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry)
Defines a Class.
|
ClasspathManager |
getClasspathManager()
Returns the ClasspathManager for this BaseClassLoader
|
ProtectionDomain |
getDomain()
Returns the domain for the host bundle of this class loader
|
Object |
publicDefinePackage(String name,
String specTitle,
String specVersion,
String specVendor,
String implTitle,
String implVersion,
String implVendor,
URL sealBase)
A public version of the ClassLoader#definePackage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.net.URL) method.
|
Class<?> |
publicFindLoaded(String classname)
A public version of the ClassLoader.findLoadedClass(java.lang.String) method.
|
Object |
publicGetPackage(String pkgname)
A public version of the ClassLoader#getPackage(java.lang.String) method.
|
attachFragment, close, findEntries, findLocalClass, findLocalResource, findLocalResources, getDelegate, getParent, getResource, getResources, initialize, listLocalResources, listResources, loadClass
getBundle
ProtectionDomain getDomain()
ClasspathEntry createClassPathEntry(BundleFile bundlefile, ProtectionDomain cpDomain)
bundlefile
- the source bundle file for a classpath entrycpDomain
- the source domain for a classpath entryClass<?> defineClass(String name, byte[] classbytes, ClasspathEntry classpathEntry, BundleEntry entry)
name
- the name of the class to defineclassbytes
- the bytes of the class to defineclasspathEntry
- the classpath entry used to load the class bytesentry
- the bundle entry used to load the class bytesClass<?> publicFindLoaded(String classname)
classname
- the class name to find.Object publicGetPackage(String pkgname)
pkgname
- the package name to get.Object publicDefinePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)
ClasspathManager getClasspathManager()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.