public class SystemBundleLoader extends BundleLoader
Modifier and Type | Field and Description |
---|---|
static String |
EQUINOX_EE |
CLASS_CONTEXT, DEFAULT_PACKAGE, FLAG_CLOSED, FLAG_HASDYNAMICEIMPORTALL, FLAG_HASDYNAMICIMPORTS, FLAG_IMPORTSINIT, FLAG_LAZYTRIGGER, FW_CLASSLOADER, JAVA_PACKAGE
Modifier | Constructor and Description |
---|---|
protected |
SystemBundleLoader(BundleHost bundle,
BundleLoaderProxy proxy) |
Modifier and Type | Method and Description |
---|---|
void |
attachFragment(BundleFragment fragment) |
protected void |
close()
Do nothing on a close.
|
Class<?> |
findClass(String name)
The ClassLoader that loads OSGi framework classes is used to find the class.
|
String |
findLibrary(String name)
This method will always return null.
|
URL |
findResource(String name)
The ClassLoader that loads OSGi framework classes is used to find the resource.
|
Enumeration<URL> |
findResources(String name)
The ClassLoader that loads OSGi framework classes is used to find the resource.
|
boolean |
isEEPackage(String pkgName) |
addDynamicImportPackage, closeBundleLoader, compoundEnumerations, createClassLoader, getBundle, getImportedSources, getLoaderProxy, getLoaderProxy, getPackageName, getPackageSource, getParentClassLoader, getResourcePackageName, getResources, isLazyTriggerSet, listResources, loadClass, setLazyTrigger, toString
public static final String EQUINOX_EE
protected SystemBundleLoader(BundleHost bundle, BundleLoaderProxy proxy) throws BundleException
bundle
- The system bundle.proxy
- The BundleLoaderProxy for the system bundleBundleException
- On any error.public void attachFragment(BundleFragment fragment) throws BundleException
attachFragment
in class BundleLoader
BundleException
public Class<?> findClass(String name) throws ClassNotFoundException
findClass
in interface ClassLoaderDelegate
findClass
in class BundleLoader
name
- the class to find.ClassNotFoundException
- if the class is not found.public String findLibrary(String name)
findLibrary
in interface ClassLoaderDelegate
findLibrary
in class BundleLoader
name
- the library namepublic URL findResource(String name)
findResource
in interface ClassLoaderDelegate
findResource
in class BundleLoader
name
- the resource to load.public Enumeration<URL> findResources(String name) throws IOException
findResources
in interface ClassLoaderDelegate
findResources
in class BundleLoader
name
- the resource to find.IOException
protected void close()
public boolean isEEPackage(String pkgName)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.