T
- the service type.P
- the service parameters type.Named
public interface BuildServiceRegistration<T extends BuildService<P>,P extends BuildServiceParameters> extends Named
Named.Namer
Modifier and Type | Method | Description |
---|---|---|
Property<Integer> |
getMaxParallelUsages() |
Specifies the maximum number of tasks that can use this service in parallel.
|
P |
getParameters() |
Returns the parameters that will be used to instantiate the service with.
|
Provider<T> |
getService() |
Returns a
Provider that will create the service instance when its value is queried. |
P getParameters()
Property<Integer> getMaxParallelUsages()
IMPORTANT: the build service must be explicitly registered with every using task via Task#usesService
for this constraint to be honored.
Task.usesService(Provider)