|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.plugins.ExtensionContainer org.gradle.api.plugins.Convention
public interface Convention extends ExtensionContainer
A Convention manages a set of convention objects. When you add a convention object to a Convention, and the properties and methods of the convention object become available as properties and methods of the object which the convention is associated to. A convention object is simply a POJO or POGO. Usually, a Convention is used by plugins to extend a Project or a Task.
Method Summary | |
---|---|
java.lang.Object
|
findPlugin(java.lang.Class type)
Locates the plugin convention object with the given type. |
org.gradle.api.internal.DynamicObject
|
getExtensionsAsDynamicObject()
Returns a dynamic object which represents the properties and methods contributed by the extensions and convention objects contained in this convention. |
java.lang.Object
|
getPlugin(java.lang.Class type)
Locates the plugin convention object with the given type. |
java.util.Map
|
getPlugins()
Returns the plugin convention objects contained in this convention. |
Methods inherited from interface ExtensionContainer | |
---|---|
add, findByName, findByType, getByName, getByType |
Method Detail |
---|
public java.lang.Object findPlugin(java.lang.Class type)
type
- The convention object type.
public org.gradle.api.internal.DynamicObject getExtensionsAsDynamicObject()
public java.lang.Object getPlugin(java.lang.Class type)
type
- The convention object type.
public java.util.Map getPlugins()
Groovy Documentation