Interface StorageRegistry<T>

Type Parameters:
T - the type.

public interface StorageRegistry<T>
This is responsible for maintaining all dao factories (either FS or JPA ) for given storage id.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this StorageRegistry contains a mapping for the specified key.
    get(String key)
    Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
    void
    put(String key, T storageObject)
    Stores given storageObject with given key.
    Returns a Collection view of the values contained in this StorageRegistry.
  • Method Details

    • put

      void put(String key, T storageObject) throws com.tridion.broker.StorageException
      Stores given storageObject with given key. If key exist then it throws StorageException.
      Parameters:
      key - storage id
      storageObject - object which you want to store
      Throws:
      com.tridion.broker.StorageException - if given key is already exist.
    • contains

      boolean contains(String key) throws com.tridion.broker.StorageException
      Returns true if this StorageRegistry contains a mapping for the specified key.
      Parameters:
      key - key whose presence in this map is to be tested
      Returns:
      true if this StorageRegistry contains a mapping for the specified key
      Throws:
      com.tridion.broker.StorageException
    • get

      T get(String key) throws com.tridion.broker.StorageException
      Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
      Parameters:
      key - the key whose associated value is to be returned
      Returns:
      the value to which the specified key is mapped, or null if this map contains no mapping for the key
      Throws:
      com.tridion.broker.StorageException
    • values

      Collection<T> values() throws com.tridion.broker.StorageException
      Returns a Collection view of the values contained in this StorageRegistry.
      Returns:
      a collection view of the values contained in this map
      Throws:
      com.tridion.broker.StorageException