Package org.rundeck.app.spi
Interface Services
-
- All Known Implementing Classes:
SimpleServiceProvider
public interface Services
Provides access to various services within the application from plugin contexts
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Services
combine(Services other)
static Services
combine(Services a, Services b)
default <T extends AppService>
TgetService(java.lang.Class<T> type)
Returns the service of the given type if availableboolean
hasService(java.lang.Class<? extends AppService> type)
-
-
-
Method Detail
-
hasService
boolean hasService(java.lang.Class<? extends AppService> type)
- Parameters:
type
- service type- Returns:
- true if the service type is available
-
getService
default <T extends AppService> T getService(java.lang.Class<T> type)
Returns the service of the given type if available- Type Parameters:
T
- service tye- Parameters:
type
- type class- Returns:
- service
- Throws:
java.lang.IllegalStateException
- if the requested service type is not available
-
-