Table of Contents
API Documentation: | TaskCollection |
---|
Known Subtypes: |
|
---|
A TaskCollection
contains a set of Task
instances, and provides a number of query methods.
Method | Description |
getByName(name) | Locates an object by name, failing if there is no such object. |
getByName(name, configureClosure) | Locates an object by name, failing if there is no such object. The given configure closure is executed against the object before it is returned from this method. The object is passed to the closure as its delegate. |
getByName(name, configureAction) | Locates an object by name, failing if there is no such object. The given configure action is executed against the object before it is returned from this method. |
named(name) | Locates a task by name, without triggering its creation or configuration, failing if there is no such object. |
named(name, type) | Locates a object by name and type, without triggering its creation or configuration, failing if there is no such object. |
named(name, type, configurationAction) | Locates a object by name and type, without triggering its creation or configuration, failing if there is no such object. The given configure action is executed against the object before it is returned from the provider. |
named(name, configurationAction) | Locates a object by name, without triggering its creation or configuration, failing if there is no such object. The given configure action is executed against the object before it is returned from the provider. |
named(nameFilter) | Returns a collection containing the objects with names matching the provided filter. The returned collection is live, so that when matching objects are added to this collection, they are also visible in the filtered collection. This method will NOT cause any pending objects in this container to be realized. |
T
getByName
(String
name)
Locates an object by name, failing if there is no such object.
Locates an object by name, failing if there is no such object. The given configure closure is executed against the object before it is returned from this method. The object is passed to the closure as its delegate.
Locates an object by name, failing if there is no such object. The given configure action is executed against the object before it is returned from this method.
TaskProvider
<T
>
named
(String
name)
TaskProvider
<T
>Locates a task by name, without triggering its creation or configuration, failing if there is no such object.
TaskProvider
<S
>
named
(String
name, Class
<S
>
type)
TaskProvider
<S
>Class
<S
>Locates a object by name and type, without triggering its creation or configuration, failing if there is no such object.
TaskProvider
<S
>
named
(String
name, Class
<S
>
type, Action
<? super S
>
configurationAction)
TaskProvider
<S
>Class
<S
>Action
<? super S
>Locates a object by name and type, without triggering its creation or configuration, failing if there is no such object. The given configure action is executed against the object before it is returned from the provider.
TaskProvider
<T
>
named
(String
name, Action
<? super T
>
configurationAction)
TaskProvider
<T
>Action
<? super T
>Locates a object by name, without triggering its creation or configuration, failing if there is no such object. The given configure action is executed against the object before it is returned from the provider.
TaskCollection
<T
>
named
(Spec
<String
>
nameFilter)
TaskCollection
<T
>Spec
<String
>Returns a collection containing the objects with names matching the provided filter. The returned collection is live, so that when matching objects are added to this collection, they are also visible in the filtered collection. This method will NOT cause any pending objects in this container to be realized.