*/
@Override
protected LDCachingBackend createBackend() {
final File storageDir = Files.createTempDir();
LDCachingBackend backend = null;
try {
backend = new LDCachingFileBackend(storageDir) {
@Override
public void shutdown() {
super.shutdown();
try {
FileUtils.deleteDirectory(storageDir);
} catch (IOException e) {
}
}
};
backend.initialize();
return backend;
} catch (RepositoryException e) {
throw new AssumptionViolatedException("could not initialise backend",e);
}