Interface OcflStorageInitializer

  • All Known Implementing Classes:
    DefaultOcflStorageInitializer

    public interface OcflStorageInitializer
    Initializes an OCFL repository by either creating a new repository root or reading the configuration from an existing repository.
    • Method Detail

      • initializeStorage

        OcflStorageLayoutExtension initializeStorage​(OcflVersion ocflVersion,
                                                     OcflExtensionConfig layoutConfig,
                                                     ExtensionSupportEvaluator supportEvaluator)
        Initializes a new OCFL storage root when the storage root does not already exist. If the storage root does exist, then the configuration is examined to ensure that it matches what was configured programmatically. If nothing was configured programmatically, then the configuration on disk is used without validation.
        Parameters:
        ocflVersion - OCFL version the repository conforms to
        layoutConfig - storage layout configuration, may be null when not creating a new repository
        supportEvaluator - repository extension evaluator
        Returns:
        the storage layout extension the repository uses