|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
org.gradle.api.DomainObjectSetjava.lang.Iterable
org.gradle.api.DomainObjectCollection
org.gradle.api.plugins.PluginCollection
java.util.Collection
public interface PluginCollection extends DomainObjectSet
A PluginCollection represents a collection of Plugin instances.
- The type of plugins which this collection contains.| Method Summary | |
|---|---|
PluginCollection
|
matching(Spec spec)
{@inheritDoc} |
PluginCollection
|
matching(Closure closure)
{@inheritDoc} |
Action
|
whenPluginAdded(Action action)
Adds an Action to be executed when a plugin is added to this collection. |
void
|
whenPluginAdded(Closure closure)
Adds a closure to be called when a plugin is added to this collection. |
PluginCollection
|
withType(Class type)
{@inheritDoc} |
| Methods inherited from interface DomainObjectSet | |
|---|---|
| findAll, matching, matching, withType |
| Methods inherited from interface DomainObjectCollection | |
|---|---|
| all, all, findAll, matching, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType, withType |
| Methods inherited from interface Set | |
|---|---|
| add, remove, equals, hashCode, clear, isEmpty, contains, size, toArray, toArray, addAll, iterator, containsAll, removeAll, retainAll |
| Method Detail |
|---|
public PluginCollection matching(Spec spec)
public PluginCollection matching(Closure closure)
@SuppressWarnings("UnusedDeclaration")
public Action whenPluginAdded(Action action)
action - The action to be executed
@SuppressWarnings("UnusedDeclaration")
public void whenPluginAdded(Closure closure)
closure - The closure to be called
public PluginCollection withType(Class type)
Gradle API 1.5