public class BundleCache extends Object
This class, combined with BundleArchive, and concrete BundleRevision subclasses, implement the Felix bundle cache. It is possible to configure the default behavior of this class by passing properties into Felix' constructor. The configuration properties for this class are (properties starting with "felix" are specific to Felix, while those starting with "org.osgi" are standard OSGi properties):
For specific information on how to configure the Felix framework, refer to the Felix framework usage documentation.
BundleArchive
Modifier and Type | Field and Description |
---|---|
protected static int |
BUFSIZE |
static String |
CACHE_BUFSIZE_PROP |
static String |
CACHE_FILELIMIT_PROP |
static String |
CACHE_LOCKING_PROP |
static String |
CACHE_ROOTDIR_PROP |
static String |
CACHE_SINGLEBUNDLEFILE_PROP |
Constructor and Description |
---|
BundleCache(Logger logger,
Map configMap) |
Modifier and Type | Method and Description |
---|---|
BundleArchive |
create(long id,
int startLevel,
String location,
InputStream is) |
void |
delete() |
BundleArchive[] |
getArchives() |
File |
getSystemBundleDataFile(String fileName)
Provides the system bundle access to its private storage area; this
special case is necessary since the system bundle is not really a
bundle and therefore must be treated in a special way.
|
void |
release() |
public static final String CACHE_BUFSIZE_PROP
public static final String CACHE_ROOTDIR_PROP
public static final String CACHE_LOCKING_PROP
public static final String CACHE_FILELIMIT_PROP
public static final String CACHE_SINGLEBUNDLEFILE_PROP
protected static transient int BUFSIZE
public void release()
public BundleArchive[] getArchives() throws Exception
Exception
public BundleArchive create(long id, int startLevel, String location, InputStream is) throws Exception
Exception
public File getSystemBundleDataFile(String fileName) throws Exception
fileName
- the name of the file in the system bundle's private area.Exception
- if any error occurs.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.