|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BaseClassLoader
The actual class loader object used to define classes for a classpath manager. This interface provides public versions of a few methods on class loader.
ClasspathManager| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.eclipse.osgi.framework.adaptor.BundleClassLoader |
|---|
attachFragment, close, findEntries, findLocalClass, findLocalResource, findLocalResources, getDelegate, getParent, getResource, getResources, initialize, listLocalResources, listResources, loadClass |
| Methods inherited from interface org.osgi.framework.BundleReference |
|---|
getBundle |
| Method Detail |
|---|
ProtectionDomain getDomain()
ClasspathEntry createClassPathEntry(BundleFile bundlefile,
ProtectionDomain cpDomain)
bundlefile - the source bundle file for a classpath entrycpDomain - the source domain for a classpath entry
Class<?> 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 bytes
Class<?> 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||