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, toStringpublic 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 BundleLoaderBundleExceptionpublic Class<?> findClass(String name) throws ClassNotFoundException
findClass in interface ClassLoaderDelegatefindClass in class BundleLoadername - the class to find.ClassNotFoundException - if the class is not found.public String findLibrary(String name)
findLibrary in interface ClassLoaderDelegatefindLibrary in class BundleLoadername - the library namepublic URL findResource(String name)
findResource in interface ClassLoaderDelegatefindResource in class BundleLoadername - the resource to load.public Enumeration<URL> findResources(String name) throws IOException
findResources in interface ClassLoaderDelegatefindResources in class BundleLoadername - the resource to find.IOExceptionprotected void close()
public boolean isEEPackage(String pkgName)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.