|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.osgi.framework.internal.core.BundleLoader
public class BundleLoader
This object is responsible for all classloader delegation for a bundle. It represents the loaded state of the bundle. BundleLoader objects are created lazily; care should be taken not to force the creation of a BundleLoader unless it is necessary.
BundleLoaderProxy
Field Summary | |
---|---|
static org.eclipse.osgi.framework.internal.core.BundleLoader.ClassContext |
CLASS_CONTEXT
|
static java.lang.String |
DEFAULT_PACKAGE
|
static byte |
FLAG_CLOSED
|
static byte |
FLAG_HASDYNAMICEIMPORTALL
|
static byte |
FLAG_HASDYNAMICIMPORTS
|
static byte |
FLAG_IMPORTSINIT
|
static java.lang.ClassLoader |
FW_CLASSLOADER
|
static java.lang.String |
JAVA_PACKAGE
|
Constructor Summary | |
---|---|
protected |
BundleLoader(BundleHost bundle,
BundleLoaderProxy proxy)
BundleLoader runtime constructor. |
Method Summary | |
---|---|
void |
addDynamicImportPackage(org.eclipse.osgi.util.ManifestElement[] packages)
Adds a list of DynamicImport-Package manifest elements to the dynamic import tables of this BundleLoader. |
java.lang.Class |
findClass(java.lang.String name)
Finds the class for a bundle. |
java.lang.String |
findLibrary(java.lang.String name)
Returns the absolute path name of a native library. |
java.net.URL |
findResource(java.lang.String name)
Finds the resource for a bundle. |
java.util.Enumeration |
findResources(java.lang.String name)
Finds the resources for a bundle. |
static java.lang.String |
getPackageName(java.lang.String name)
Returns the package name from the specified class name. |
static java.lang.String |
getResourcePackageName(java.lang.String name)
Returns the package name from the specified resource name. |
java.lang.String |
toString()
Return a string representation of this loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_PACKAGE
public static final java.lang.String JAVA_PACKAGE
public static final byte FLAG_IMPORTSINIT
public static final byte FLAG_HASDYNAMICIMPORTS
public static final byte FLAG_HASDYNAMICEIMPORTALL
public static final byte FLAG_CLOSED
public static final org.eclipse.osgi.framework.internal.core.BundleLoader.ClassContext CLASS_CONTEXT
public static final java.lang.ClassLoader FW_CLASSLOADER
Constructor Detail |
---|
protected BundleLoader(BundleHost bundle, BundleLoaderProxy proxy) throws BundleException
bundle
- Bundle object for this loader.proxy
- the BundleLoaderProxy for this loader.
BundleException
Method Detail |
---|
public static final java.lang.String getPackageName(java.lang.String name)
name
- Name of a class.
public static final java.lang.String getResourcePackageName(java.lang.String name)
name
- Name of a resource.
public java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in interface ClassLoaderDelegate
name
- the class to find.
java.lang.ClassNotFoundException
- if the class is not found.public java.net.URL findResource(java.lang.String name)
findResource
in interface ClassLoaderDelegate
name
- the resource to load.
public java.util.Enumeration findResources(java.lang.String name) throws java.io.IOException
findResources
in interface ClassLoaderDelegate
name
- the resource to find.
java.io.IOException
public java.lang.String findLibrary(java.lang.String name)
findLibrary
in interface ClassLoaderDelegate
name
- the library name
public final java.lang.String toString()
toString
in class java.lang.Object
public final void addDynamicImportPackage(org.eclipse.osgi.util.ManifestElement[] packages)
packages
- the DynamicImport-Package elements to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |