Package ratpack.exec.registry
Interface MutableRegistry
-
- All Superinterfaces:
Registry
,RegistrySpec
public interface MutableRegistry extends Registry, RegistrySpec
ARegistry
that is also mutable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> void
remove(com.google.common.reflect.TypeToken<T> type)
Remove the registration for the given type.default <T> void
remove(Class<T> type)
Remove the registration for the given type.
-
-
-
Method Detail
-
remove
default <T> void remove(Class<T> type) throws NotInRegistryException
Remove the registration for the given type.- Type Parameters:
T
- The type of the thing to remove- Parameters:
type
- The type of the thing to remove- Throws:
NotInRegistryException
- if there is nothing registered by that type
-
remove
<T> void remove(com.google.common.reflect.TypeToken<T> type) throws NotInRegistryException
Remove the registration for the given type.- Type Parameters:
T
- The type of the thing to remove- Parameters:
type
- The type of the thing to remove- Throws:
NotInRegistryException
- if there is nothing registered by that type
-
-