@groovy.transform.CompileStatic abstract class CachedGradleOperation<T> extends java.lang.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 java.lang.String |
fileName |
|
protected ProjectContext |
projectContext |
Constructor and description |
---|
CachedGradleOperation
(ProjectContext projectContext, java.lang.String fileName) |
Type Params | Return Type | Name and description |
---|---|---|
|
T |
call() |
|
abstract T |
readFromCached(java.io.File f) |
|
abstract T |
readFromGradle(org.gradle.tooling.ProjectConnection connection) |
|
protected void |
storeData(T data) |
|
void |
updateStatusMessage() |
|
abstract void |
writeToCache(java.io.PrintWriter writer, T data) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |