|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.DomainObjectCollection org.gradle.api.plugins.PluginCollection
public interface PluginCollection extends DomainObjectCollection
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(groovy.lang.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(groovy.lang.Closure closure)
{@inheritDoc} |
Action
|
whenPluginAdded(Action action)
Adds an Action to be executed when a plugin is added to this collection. |
void
|
whenPluginAdded(groovy.lang.Closure closure)
Adds a closure to be called when a plugin is added to this collection. |
PluginCollection
|
withType(java.lang.Class type)
{@inheritDoc} |
Methods inherited from interface DomainObjectCollection | |
---|---|
all, all, allObjects, allObjects, findAll, getAll, matching, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, withType, withType, withType |
Methods inherited from interface java.lang.Iterable | |
---|---|
java.lang.Iterable#iterator() |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
@Deprecated public void allPlugins(Action action)
action
- The action to be executed
@Deprecated public void allPlugins(groovy.lang.Closure closure)
closure
- The closure to be called
public PluginCollection matching(Spec spec)
public PluginCollection matching(groovy.lang.Closure closure)
public Action whenPluginAdded(Action action)
action
- The action to be executed
public void whenPluginAdded(groovy.lang.Closure closure)
closure
- The closure to be called
public PluginCollection withType(java.lang.Class type)
Groovy Documentation