org.eclipse.osgi.framework.internal.core
Class SystemBundleLoader

java.lang.Object
  extended by org.eclipse.osgi.framework.internal.core.BundleLoader
      extended by org.eclipse.osgi.framework.internal.core.SystemBundleLoader
All Implemented Interfaces:
ClassLoaderDelegate

public class SystemBundleLoader
extends BundleLoader

The System Bundle's BundleLoader. This BundleLoader is used by ImportClassLoaders to load a resource that is exported by the System Bundle.


Field Summary
static java.lang.String EQUINOX_EE
           
 
Fields inherited from class org.eclipse.osgi.framework.internal.core.BundleLoader
CLASS_CONTEXT, DEFAULT_PACKAGE, FLAG_CLOSED, FLAG_HASDYNAMICEIMPORTALL, FLAG_HASDYNAMICIMPORTS, FLAG_IMPORTSINIT, FW_CLASSLOADER, JAVA_PACKAGE
 
Constructor Summary
protected SystemBundleLoader(BundleHost bundle, BundleLoaderProxy proxy)
           
 
Method Summary
protected  void close()
          Do nothing on a close.
 java.lang.Class findClass(java.lang.String name)
          The ClassLoader that loads OSGi framework classes is used to find the class.
 java.lang.String findLibrary(java.lang.String name)
          This method will always return null.
 java.net.URL findResource(java.lang.String name)
          The ClassLoader that loads OSGi framework classes is used to find the resource.
 java.util.Enumeration findResources(java.lang.String name)
          The ClassLoader that loads OSGi framework classes is used to find the resource.
 boolean isEEPackage(java.lang.String pkgName)
           
 
Methods inherited from class org.eclipse.osgi.framework.internal.core.BundleLoader
addDynamicImportPackage, getPackageName, getResourcePackageName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQUINOX_EE

public static final java.lang.String EQUINOX_EE
See Also:
Constant Field Values
Constructor Detail

SystemBundleLoader

protected SystemBundleLoader(BundleHost bundle,
                             BundleLoaderProxy proxy)
                      throws BundleException
Parameters:
bundle - The system bundle.
proxy - The BundleLoaderProxy for the system bundle
Throws:
BundleException - On any error.
Method Detail

findClass

public java.lang.Class findClass(java.lang.String name)
                          throws java.lang.ClassNotFoundException
The ClassLoader that loads OSGi framework classes is used to find the class.

Specified by:
findClass in interface ClassLoaderDelegate
Overrides:
findClass in class BundleLoader
Parameters:
name - the class to find.
Returns:
the Class.
Throws:
java.lang.ClassNotFoundException - if the class is not found.

findLibrary

public java.lang.String findLibrary(java.lang.String name)
This method will always return null.

Specified by:
findLibrary in interface ClassLoaderDelegate
Overrides:
findLibrary in class BundleLoader
Parameters:
name - the library name
Returns:
the absolute path of the native library or null if not found

findResource

public java.net.URL findResource(java.lang.String name)
The ClassLoader that loads OSGi framework classes is used to find the resource.

Specified by:
findResource in interface ClassLoaderDelegate
Overrides:
findResource in class BundleLoader
Parameters:
name - the resource to load.
Returns:
the resource or null if resource is not found.

findResources

public java.util.Enumeration findResources(java.lang.String name)
                                    throws java.io.IOException
The ClassLoader that loads OSGi framework classes is used to find the resource.

Specified by:
findResources in interface ClassLoaderDelegate
Overrides:
findResources in class BundleLoader
Parameters:
name - the resource to find.
Returns:
the enumeration of resources found or null if the resource does not exist.
Throws:
java.io.IOException

close

protected void close()
Do nothing on a close.


isEEPackage

public boolean isEEPackage(java.lang.String pkgName)