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(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(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, remove, equals, hashCode, clear, contains, isEmpty, iterator, size, toArray, toArray, spliterator, addAll, containsAll, removeAll, retainAll, stream, removeIf, parallelStream, forEach |
{@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}