Package org.gradle.api.services
Schnittstelle BuildServiceRegistration<T extends BuildService<P>,P extends BuildServiceParameters>
- Typparameter:
T- the service type.P- the service parameters type.
- Alle Superschnittstellen:
Named
public interface BuildServiceRegistration<T extends BuildService<P>,P extends BuildServiceParameters>
extends Named
Details of a build service.
- Seit:
- 6.1
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Named
Named.Namer -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungSpecifies the maximum number of tasks that can use this service in parallel.Returns the parameters that will be used to instantiate the service with.Returns aProviderthat will create the service instance when its value is queried.
-
Methodendetails
-
getParameters
P getParameters()Returns the parameters that will be used to instantiate the service with. -
getMaxParallelUsages
Specifies the maximum number of tasks that can use this service in parallel. Setting this to 1 means that the service will be used by a single task at a time. When this property has no value defined, then any number of tasks may use this service in parallel. This is the default.IMPORTANT: the build service must be consumed via a
ServiceReferenceproperty, or explicitly registered with every using task viaTask#usesServicefor this constraint to be honored.- Siehe auch:
-
getService
Returns aProviderthat will create the service instance when its value is queried.
-