Package org.sonews.storage
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
-
Method Details
-
isSupported
-
storage
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.
-