OCFL / ocfl-java

A Java OCFL implementation
MIT License
18 stars 12 forks source link

Storage refactor #52

Closed pwinckles closed 2 years ago

pwinckles commented 2 years ago

Refactor the storage layer to reduce code duplication.

There should be no functional differences, but there are breaking changes to the builders. For example, a fs base repo is not created as follows:

new OcflRepositoryBuilder()
                .storage(storage -> storage.fileSystem(repoDir))
                .workDir(workDir)
                .build();