Interface StorageProvider

All Known Implementing Classes:
CouchDBStorageProvider, JDBCStorageProvider

public interface StorageProvider
Provides access to storage backend instances.
Since:
sonews/1.0
Author:
Christian Lins
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes this storage provider and frees all resources and connections.
    boolean
     
    storage(Thread thread)
    This method returns the reference to the associated storage.
  • Method Details

    • isSupported

      boolean isSupported(String uri)
    • storage

      Storage storage(Thread thread) throws StorageBackendException
      This method returns the reference to the associated storage. The reference MAY be unique for each thread. In any case it MUST be thread-safe to use this method.
      Parameters:
      thread -
      Returns:
      The reference to the associated Storage.
      Throws:
      StorageBackendException
    • dispose

      void dispose()
      Closes this storage provider and frees all resources and connections.