Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cxf.extension
Class RegistryImpl<K,T>

    java.lang.Object
      org.apache.cxf.extension.RegistryImpl<K,T>

All Implemented Interfaces:
  Registry<K,T>

    public class RegistryImpl<K,T>

extends java.lang.Object
implements Registry<K,T>

Field Summary
`protected java.util.Map<K,T>` | `entries`

Constructor Summary
`protected` | `RegistryImpl()`
`protected` | `RegistryImpl(java.util.Map<K,T> e)`

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### entries

    protected final java.util.Map<K,T> entries

Constructor Detail

### RegistryImpl

    protected RegistryImpl()

### RegistryImpl

    protected RegistryImpl(java.util.Map<K,T> e)

Method Detail

### register

    public void register(K k,
                         T t)

  Description copied from interface: `Registry`
  Registers an object of type T with this registry.

  Specified by:
    `register` in interface `Registry<K,T>`
  Parameters:
    `k` - the key under which rto register the object
    `t` - the object to register

### unregister

    public void unregister(K k)

  Description copied from interface: `Registry`
  Unregisters the object stored under the given key from this registry.

  Specified by:
    `unregister` in interface `Registry<K,T>`
  Parameters:
    `k` - the key

### get

    public T get(K k)

  Description copied from interface: `Registry`
  Returns the object stored under the given key.

  Specified by:
    `get` in interface `Registry<K,T>`
  Parameters:
    `k` - the key
  Returns:
    the object stored under the key

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.