interface PluginCollection<T : Plugin<Any>> : DomainObjectSet<T>
A PluginCollection
represents a collection of org.gradle.api.Plugin instances.
- The type of plugins which this collection contains.
abstract fun add(element: T): Boolean
Unsupported. |
|
abstract fun addAll(elements: Collection<T>): Boolean
Unsupported. |
|
abstract fun clear(): Unit
Unsupported. |
|
abstract fun matching(spec: Spec<in T>): PluginCollection<T> abstract fun matching(closure: Closure<Any>): PluginCollection<T>
{@inheritDoc} |
|
abstract fun remove(o: T): Boolean
Unsupported. |
|
abstract fun removeAll(elements: Collection<T>): Boolean
Unsupported. |
|
abstract fun whenPluginAdded(action: Action<in T>): Action<in T>
Adds an abstract fun whenPluginAdded(closure: Closure<Any>): Unit
Adds a closure to be called when a plugin is added to this collection. The plugin is passed to the closure as the parameter. |
|
abstract fun <S : T> withType(type: Class<S>): PluginCollection<S>
{@inheritDoc} |
abstract fun findAll(spec: Closure<Any>): MutableSet<T>
{@inheritDoc} |
interface PluginContainer : PluginCollection<Plugin<Any>>
A Plugins can be specified using either an id or type. The id of a plugin is specified using a META-INF/gradle-plugins/${id}.properties classpath resource. |