A PluginCollection represents a collection of Plugin instances.
- The type of plugins which this collection contains.| Type | Name and description |
|---|---|
PluginCollection<T> |
matching(Spec<? super T> spec){@inheritDoc} |
PluginCollection<T> |
matching(groovy.lang.Closure closure){@inheritDoc} |
Action<? super T> |
whenPluginAdded(Action<? super T> 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<S> |
withType(Class<S> type){@inheritDoc} |
| Methods inherited from class | Name |
|---|---|
interface DomainObjectSet |
findAll, matching, matching, withType |
interface DomainObjectCollection |
all, all, findAll, matching, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType, withType |
interface Set |
add, equals, hashCode, clear, contains, isEmpty, size, toArray, toArray, addAll, iterator, remove, containsAll, removeAll, retainAll |
{@inheritDoc}
{@inheritDoc}
Adds an Action to be executed when a plugin is added to this collection.
action - The action to be executedAdds a closure to be called when a plugin is added to this collection. The plugin is passed to the closure as the parameter.
closure - The closure to be called{@inheritDoc}