@CompileStatic abstract class CachedGradleOperation<T> extends Object implements Callable<T>
Utility class for performing cached operations that retrieve data from Gradle. Since these operations are expensive we want to cache the data to avoid unnecessarily calling Gradle
| Modifiers | Name | Description |
|---|---|---|
protected String |
fileName |
|
protected ProjectContext |
projectContext |
| Constructor and description |
|---|
CachedGradleOperation(ProjectContext projectContext, String fileName) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
T |
call() |
|
abstract T |
readFromCached(File f) |
|
abstract T |
readFromGradle(ProjectConnection connection) |
|
protected void |
storeData(T data) |
|
void |
updateStatusMessage() |
|
abstract void |
writeToCache(PrintWriter writer, T data) |