|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
org.gradle.api.DomainObjectSetjava.lang.Iterable
org.gradle.api.DomainObjectCollection
org.gradle.api.plugins.PluginCollection
java.util.Collection
org.gradle.api.plugins.PluginContainer
public interface PluginContainer extends PluginCollection
A PluginContainer is used to manage a set of Plugin instances applied to a particular project.
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.
| Method Summary | |
|---|---|
Plugin
|
apply(String id)
Has the same behavior as apply(Class) except that the the plugin is specified via its id. |
Object
|
apply(Class type)
Applies a plugin to the project. |
Plugin
|
findPlugin(String id)
Returns the plugin for the given id. |
Object
|
findPlugin(Class type)
Returns the plugin for the given type. |
Plugin
|
getAt(String id)
Returns a plugin with the specified id if this plugin has been used in the project. |
Object
|
getAt(Class type)
Returns a plugin with the specified type if this plugin has been used in the project. |
Plugin
|
getPlugin(String id)
Returns a plugin with the specified id if this plugin has been used in the project. |
Object
|
getPlugin(Class type)
Returns a plugin with the specified type if this plugin has been used in the project. |
boolean
|
hasPlugin(String id)
Returns true if the container has a plugin with the given id, false otherwise. |
boolean
|
hasPlugin(Class type)
Returns true if the container has a plugin with the given type, false otherwise. |
| Methods inherited from interface PluginCollection | |
|---|---|
| matching, matching, whenPluginAdded, whenPluginAdded, withType |
| Methods inherited from interface DomainObjectSet | |
|---|---|
| findAll, matching, matching, withType |
| Methods inherited from interface DomainObjectCollection | |
|---|---|
| all, all, findAll, matching, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType, withType |
| Methods inherited from interface Set | |
|---|---|
| add, remove, equals, hashCode, clear, isEmpty, contains, size, toArray, toArray, addAll, iterator, containsAll, removeAll, retainAll |
| Method Detail |
|---|
public Plugin apply(String id)
id - The id of the plugin to be applied.
public Object apply(Class type)
type - The type of the plugin to be used
public Plugin findPlugin(String id)
id - The id of the plugin
public Object findPlugin(Class type)
type - The type of the plugin
public Plugin getAt(String id)
id - The id of the plugin
public Object getAt(Class type)
type - The type of the plugin
public Plugin getPlugin(String id)
id - The id of the plugin
public Object getPlugin(Class type)
type - The type of the plugin
public boolean hasPlugin(String id)
id - The id of the plugin
public boolean hasPlugin(Class type)
type - The type of the plugin
Gradle API 1.5