|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.prefs.impl.StreamBackingStoreImpl
org.apache.felix.prefs.impl.DataFileBackingStoreImpl
public class DataFileBackingStoreImpl
This implementating of the backing store uses the bundle mechanism to store binary data.
Field Summary | |
---|---|
protected File |
rootDirectory
The root directory (or null if not available) |
Fields inherited from class org.apache.felix.prefs.impl.StreamBackingStoreImpl |
---|
bundleContext |
Constructor Summary | |
---|---|
DataFileBackingStoreImpl(BundleContext context)
|
Method Summary | |
---|---|
Long[] |
availableBundles()
Return all bundle ids for which preferences are stored.. |
protected void |
checkAccess()
This method is invoked to check if the backing store is accessible right now. |
protected PreferencesDescription |
getDescription(File file)
|
protected File |
getFile(PreferencesDescription desc)
Get the file fo the preferences tree. |
protected OutputStream |
getOutputStream(PreferencesDescription desc)
Get the output stream to write the preferences. |
PreferencesImpl |
load(BackingStoreManager manager,
PreferencesDescription desc)
Load the preferences for the given description. |
PreferencesImpl[] |
loadAll(BackingStoreManager manager,
Long bundleId)
Load all preferences for this bundle. |
void |
remove(Long bundleId)
Remove all preferences stored for this bundle. |
Methods inherited from class org.apache.felix.prefs.impl.StreamBackingStoreImpl |
---|
hasChanges, read, readPreferences, store, update, write, writePreferences |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final File rootDirectory
Constructor Detail |
---|
public DataFileBackingStoreImpl(BundleContext context)
Method Detail |
---|
protected void checkAccess() throws BackingStoreException
StreamBackingStoreImpl
checkAccess
in class StreamBackingStoreImpl
BackingStoreException
org.apache.felix.sandbox.preferences.impl.StreamBackingStoreImpl#checkAccess()
protected OutputStream getOutputStream(PreferencesDescription desc) throws IOException
StreamBackingStoreImpl
getOutputStream
in class StreamBackingStoreImpl
IOException
org.apache.felix.sandbox.preferences.impl.StreamBackingStoreImpl#getOutputStream(org.apache.felix.sandbox.preferences.PreferencesDescription)
public Long[] availableBundles()
BackingStore
BackingStore.availableBundles()
protected PreferencesDescription getDescription(File file)
public void remove(Long bundleId) throws BackingStoreException
BackingStore
bundleId
- The bundle id.
BackingStoreException
BackingStore.remove(java.lang.Long)
public PreferencesImpl[] loadAll(BackingStoreManager manager, Long bundleId) throws BackingStoreException
BackingStore
manager
- The backing store manager which should be passed to new preferences implementations.bundleId
- The bundle id.
BackingStoreException
BackingStore.loadAll(org.apache.felix.prefs.BackingStoreManager, java.lang.Long)
public PreferencesImpl load(BackingStoreManager manager, PreferencesDescription desc) throws BackingStoreException
BackingStore
manager
- The backing store manager which should be passed to new preferences implementations.
BackingStoreException
BackingStore.load(org.apache.felix.prefs.BackingStoreManager, org.apache.felix.prefs.PreferencesDescription)
protected File getFile(PreferencesDescription desc)
desc
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |