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()
      */