|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.DomainObjectSet java.lang.Iterable org.gradle.api.DomainObjectCollection java.util.Collection org.gradle.api.plugins.PluginCollection
public interface PluginCollection extends DomainObjectSet
A PluginCollection represents a collection of Plugin instances.
- The type of plugins which this collection contains.Method Summary | |
---|---|
void
|
allPlugins(Action action)
Executes the given action against all plugins in this collection, and any plugins subsequently added to this collection. |
void
|
allPlugins(Closure closure)
Executes the given closure against all plugins in this collection, and any plugins subsequently added to this collection. |
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, allObjects, allObjects, findAll, findAll, getAll, matching, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType, withType |
Methods inherited from interface Set | |
---|---|
add, equals, hashCode, clear, size, isEmpty, contains, addAll, toArray, toArray, iterator, remove, removeAll, containsAll, retainAll |
Method Detail |
---|
@Deprecated public void allPlugins(Action action)
action
- The action to be executed
@Deprecated public void allPlugins(Closure closure)
closure
- The closure to be called
public PluginCollection matching(Spec spec)
public PluginCollection matching(Closure closure)
public Action whenPluginAdded(Action action)
action
- The action to be executed
public void whenPluginAdded(Closure closure)
closure
- The closure to be called
public PluginCollection withType(Class type)
Gradle API 1.0-milestone-8