|
||||||||||
| 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 java.io.File |
rootDirectory
The root directory (or null if not available) |
| Fields inherited from class org.apache.felix.prefs.impl.StreamBackingStoreImpl |
|---|
bundleContext |
| Constructor Summary | |
|---|---|
DataFileBackingStoreImpl(org.osgi.framework.BundleContext context)
|
|
| Method Summary | |
|---|---|
java.lang.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(java.io.File file)
|
protected java.io.File |
getFile(PreferencesDescription desc)
Get the file fo the preferences tree. |
protected java.io.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,
java.lang.Long bundleId)
Load all preferences for this bundle. |
void |
remove(java.lang.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 java.io.File rootDirectory
| Constructor Detail |
|---|
public DataFileBackingStoreImpl(org.osgi.framework.BundleContext context)
| Method Detail |
|---|
protected void checkAccess()
throws org.osgi.service.prefs.BackingStoreException
StreamBackingStoreImpl
checkAccess in class StreamBackingStoreImplorg.osgi.service.prefs.BackingStoreExceptionorg.apache.felix.sandbox.preferences.impl.StreamBackingStoreImpl#checkAccess()
protected java.io.OutputStream getOutputStream(PreferencesDescription desc)
throws java.io.IOException
StreamBackingStoreImpl
getOutputStream in class StreamBackingStoreImpljava.io.IOExceptionorg.apache.felix.sandbox.preferences.impl.StreamBackingStoreImpl#getOutputStream(org.apache.felix.sandbox.preferences.PreferencesDescription)public java.lang.Long[] availableBundles()
BackingStore
BackingStore.availableBundles()protected PreferencesDescription getDescription(java.io.File file)
public void remove(java.lang.Long bundleId)
throws org.osgi.service.prefs.BackingStoreException
BackingStore
bundleId - The bundle id.
org.osgi.service.prefs.BackingStoreExceptionBackingStore.remove(java.lang.Long)
public PreferencesImpl[] loadAll(BackingStoreManager manager,
java.lang.Long bundleId)
throws org.osgi.service.prefs.BackingStoreException
BackingStore
manager - The backing store manager which should be passed to new preferences implementations.bundleId - The bundle id.
org.osgi.service.prefs.BackingStoreExceptionBackingStore.loadAll(org.apache.felix.prefs.BackingStoreManager, java.lang.Long)
public PreferencesImpl load(BackingStoreManager manager,
PreferencesDescription desc)
throws org.osgi.service.prefs.BackingStoreException
BackingStore
manager - The backing store manager which should be passed to new preferences implementations.
org.osgi.service.prefs.BackingStoreExceptionBackingStore.load(org.apache.felix.prefs.BackingStoreManager, org.apache.felix.prefs.PreferencesDescription)protected java.io.File getFile(PreferencesDescription desc)
desc -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||