Java 类org.gradle.api.tasks.CacheableTask 实例源码

项目:Reer    文件:DefaultTaskClassInfoStore.java   
@Override
public TaskClassInfo load(Class<? extends Task> type) throws Exception {
    TaskClassInfo taskClassInfo = new TaskClassInfo();
    findTaskActions(type, taskClassInfo);

    TaskClassValidator validator = validatorExtractor.extractValidator(type);
    taskClassInfo.setValidator(validator);

    taskClassInfo.setCacheable(type.isAnnotationPresent(CacheableTask.class));
    return taskClassInfo;
}