@OpenApiAll
public interface Serviceable
Modifier and Type | Method and Description |
---|---|
<T> T |
getService(java.lang.Class<T> c)
Gets service of given type
|
<T> void |
registerService(java.lang.Class<T> type,
T service)
Adds service.
|
@CheckForNull <T> T getService(java.lang.Class<T> c)
c
- the service typenull
if the service is not available for this component<T> void registerService(java.lang.Class<T> type, T service)
type
- service typeservice
- service