commit | 93adfb80df4f802a8f921fe34bd24539c9fa6fb5 | [log] [tgz] |
---|---|---|
author | Marcel Offermans <marrs@apache.org> | Wed Mar 14 21:38:14 2012 +0000 |
committer | Marcel Offermans <marrs@apache.org> | Wed Mar 14 21:38:14 2012 +0000 |
tree | d13ddefbedcd7a687e50220c570fde7422b9ee36 | |
parent | f9e138368407d0fff7305e63d7f7e8ef585cbec6 [diff] |
FELIX-3395 added a constructor to allow you to specify the root directory for the DataFileBackingStoreImpl yourself. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1300732 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/prefs/src/main/java/org/apache/felix/prefs/impl/DataFileBackingStoreImpl.java b/prefs/src/main/java/org/apache/felix/prefs/impl/DataFileBackingStoreImpl.java index 1e611de..4352785 100644 --- a/prefs/src/main/java/org/apache/felix/prefs/impl/DataFileBackingStoreImpl.java +++ b/prefs/src/main/java/org/apache/felix/prefs/impl/DataFileBackingStoreImpl.java
@@ -39,6 +39,11 @@ this.rootDirectory = context.getDataFile(""); } + public DataFileBackingStoreImpl(BundleContext context, File rootDirectory) { + super(context); + this.rootDirectory = rootDirectory; + } + /** * @see org.apache.felix.sandbox.preferences.impl.StreamBackingStoreImpl#checkAccess() */