|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BuildConnection
Represents a long-lived connection to a Gradle build.
All implementations of GradleConnection are thread-safe, and may be shared by any number of threads.
All notifications from a given GradleConnection instance are delivered by a single thread at a time. Note, however, that the delivery thread may change over time.
| Method Summary | ||
|---|---|---|
|
getModel(Class<T> viewType)
Fetches a snapshot of the model for this build. |
|
|
getModel(Class<T> viewType,
ResultHandler<? super T> handler)
Fetches a snapshot of the model for this build asynchronously. |
|
| Method Detail |
|---|
<T extends Build> T getModel(Class<T> viewType)
throws GradleConnectionException
T - The model type.viewType - The model type.
UnsupportedVersionException - When the target Gradle version does not support the given model.
GradleConnectionException - On some failure to communicate with Gradle.
<T extends Build> void getModel(Class<T> viewType,
ResultHandler<? super T> handler)
T - The model type.viewType - The model type.handler - The handler to pass the result to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||