commit | 500b3da63fd574747a93df64e580de04cc5f2a5a | [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 | d6e2fb6adfc796f523f7bef5cf9e6b3d7132a8fa [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() */