|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Convention
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 | ||
|---|---|---|
|
findPlugin(Class<T> type)
Locates the plugin convention object with the given type. |
|
|
getPlugin(Class<T> type)
Locates the plugin convention object with the given type. |
|
Map<String,Object> |
getPlugins()
Returns the plugin convention objects contained in this convention. |
|
| Methods inherited from interface org.gradle.api.internal.DynamicObject |
|---|
getProperties, getProperty, hasMethod, hasProperty, invokeMethod, setProperty |
| Method Detail |
|---|
Map<String,Object> getPlugins()
<T> T getPlugin(Class<T> type)
throws IllegalStateException
type - The convention object type.
IllegalStateException - When there is no such object contained in this convention, or when there are
multiple such objects.
<T> T findPlugin(Class<T> type)
throws IllegalStateException
type - The convention object type.
IllegalStateException - When there there are multiple matching objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||