public class SystemBundleData extends BaseData
bundleFile, fileName, loadedNativeCode, manifestTYPE_BOOTCLASSPATH_EXTENSION, TYPE_COMPOSITEBUNDLE, TYPE_EXTCLASSPATH_EXTENSION, TYPE_FRAGMENT, TYPE_FRAMEWORK_EXTENSION, TYPE_SINGLETON, TYPE_SURROGATEBUNDLE| Constructor and Description |
|---|
SystemBundleData(BaseAdaptor adaptor) |
| Modifier and Type | Method and Description |
|---|---|
BundleClassLoader |
createClassLoader(ClassLoaderDelegate delegate,
BundleProtectionDomain domain,
String[] bundleclasspath)
This method calls all the configured class loading hooks
ClassLoadingHook.createClassLoader(ClassLoader, ClassLoaderDelegate, BundleProtectionDomain, BaseData, String[])
methods until on returns a non-null value. |
File |
createGenerationDir() |
String |
findLibrary(String libname)
This method calls each configured classloading hook
ClassLoadingHook.findLibrary(BaseData, String) method
until the first one returns a non-null value. |
int |
getStartLevel()
Returns the start level metadata for this BundleData.
|
int |
getStatus()
Returns the status metadata for this BundleData.
|
void |
installNativeCode(String[] nativepaths)
Installs the native code paths for this BundleData.
|
void |
save()
Persistently stores all the metadata for this BundleData
|
close, findLocalResources, getActivator, getAdaptor, getBundle, getBundleFile, getBundleFile, getBundleID, getClassPath, getClassPathString, getDataFile, getDynamicImports, getEntry, getEntryPaths, getExecutionEnvironment, getExtractFile, getLastModified, getLocation, getManifest, getStorageHook, getStorageHooks, getSymbolicName, getType, getVersion, isDirty, open, setActivator, setBundle, setBundleFile, setClassPathString, setDirty, setDynamicImports, setExecutionEnvironment, setFileName, setLastModified, setLocation, setStartLevel, setStatus, setStorageHooks, setSymbolicName, setType, setVersion, toStringpublic SystemBundleData(BaseAdaptor adaptor) throws BundleException
BundleExceptionpublic BundleClassLoader createClassLoader(ClassLoaderDelegate delegate, BundleProtectionDomain domain, String[] bundleclasspath)
BaseDataClassLoadingHook.createClassLoader(ClassLoader, ClassLoaderDelegate, BundleProtectionDomain, BaseData, String[])
methods until on returns a non-null value. If none of the class loading hooks returns a non-null value
then the default classloader implementation is used.createClassLoader in interface BundleDatacreateClassLoader in class BaseDatadelegate - The ClassLoaderDelegate to delegate to.domain - The BundleProtectionDomain to use when defining a class.bundleclasspath - An array of bundle classpaths to use to create this
classloader. This is specified by the Bundle-ClassPath manifest entry.BundleData.createClassLoader(ClassLoaderDelegate, BundleProtectionDomain, String[])public File createGenerationDir()
public String findLibrary(String libname)
BaseDataClassLoadingHook.findLibrary(BaseData, String) method
until the first one returns a non-null value.findLibrary in interface BundleDatafindLibrary in class BaseDatalibname - The name of the library to find the absolute path to.BundleData.findLibrary(String)public void installNativeCode(String[] nativepaths) throws BundleException
BundleDatainstallNativeCode in interface BundleDatainstallNativeCode in class BaseDatanativepaths - The array of native code paths to install for
the bundle.BundleExceptionpublic int getStartLevel()
BundleDatagetStartLevel in interface BundleDatagetStartLevel in class BaseDatapublic int getStatus()
BundleDatagetStatus in interface BundleDatagetStatus in class BaseDatapublic void save()
BundleDatasave in interface BundleDatasave in class BaseDataCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.