T
- The base type of object in the registry.public interface MutableRegistry<T> extends Registry
Registry
that is also mutable.Modifier and Type | Method and Description |
---|---|
<O extends T> |
register(Class<O> type,
O object)
Register the given object under the given type.
|
void |
register(T object)
Registers the given object with its concrete type.
|
<O extends T> |
remove(Class<O> type)
Remove the registration for the given type.
|
<O extends T> void register(Class<O> type, O object)
O
- The public type of the objecttype
- The public type of the objectobject
- The object to add to the registryvoid register(T object)
object
- The object to register<O extends T> O remove(Class<O> type) throws NotInRegistryException
O
- The type of the thing to removetype
- The type of the thing to removeNotInRegistryException
- if there is nothing registered by that type