Registry (Apache CXF JavaDoc 3.0.4.redhat-621177 API)

org.apache.cxf.extension

## Interface Registry<K,T>

- All Known Implementing Classes:
    RegistryImpl

      public interface Registry<K,T>

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `get(K k)` Returns the object stored under the given key.
    `void` | `register(K k, T t)` Registers an object of type T with this registry.
    `void` | `unregister(K k)` Unregisters the object stored under the given key from this registry.

- - ### Method Detail

    - #### register

          void register(K k,
                      T t)

      Registers an object of type T with this registry.
      Parameters:
        `k` - the key under which rto register the object
        `t` - the object to register

    - #### unregister

          void unregister(K k)

      Unregisters the object stored under the given key from this registry.
      Parameters:
        `k` - the key

    - #### get

          T get(K k)

      Returns the object stored under the given key.
      Parameters:
        `k` - the key
      Returns:
        the object stored under the key

Apache CXF