Interface BlobStoreFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BlobStoreFactory
SPI for pluggable BlobStore implementations. Cloud blob store modules (S3, GCS, Azure) register a factory via StateBackendFactory.registerBlobStoreFactory(String, BlobStoreFactory) without requiring mockserver-core to depend on any cloud SDK.

The factory is invoked by StateBackendFactory.createBlobStore(Configuration) when the blobStoreType configuration property matches the registered type name.

  • Method Summary

    Modifier and Type
    Method
    Description
    create(Configuration configuration)
    Creates a BlobStore from the given configuration.
  • Method Details

    • create

      BlobStore create(Configuration configuration)
      Creates a BlobStore from the given configuration.
      Parameters:
      configuration - the MockServer configuration
      Returns:
      a configured blob store instance