public class SystemBundleData extends BaseData
bundleFile, fileName, loadedNativeCode, manifest
TYPE_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, toString
public SystemBundleData(BaseAdaptor adaptor) throws BundleException
BundleException
public BundleClassLoader createClassLoader(ClassLoaderDelegate delegate, BundleProtectionDomain domain, String[] bundleclasspath)
BaseData
ClassLoadingHook.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 BundleData
createClassLoader
in class BaseData
delegate
- 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)
BaseData
ClassLoadingHook.findLibrary(BaseData, String)
method
until the first one returns a non-null value.findLibrary
in interface BundleData
findLibrary
in class BaseData
libname
- The name of the library to find the absolute path to.BundleData.findLibrary(String)
public void installNativeCode(String[] nativepaths) throws BundleException
BundleData
installNativeCode
in interface BundleData
installNativeCode
in class BaseData
nativepaths
- The array of native code paths to install for
the bundle.BundleException
public int getStartLevel()
BundleData
getStartLevel
in interface BundleData
getStartLevel
in class BaseData
public int getStatus()
BundleData
getStatus
in interface BundleData
getStatus
in class BaseData
public void save()
BundleData
save
in interface BundleData
save
in class BaseData
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.