Java 类org.gradle.api.execution.TaskExecutionGraphListener 实例源码

项目:Reer    文件:DefaultTaskGraphExecuter.java   
public DefaultTaskGraphExecuter(ListenerManager listenerManager, TaskPlanExecutor taskPlanExecutor, Factory<? extends TaskExecuter> taskExecuter, BuildCancellationToken cancellationToken, BuildOperationExecutor buildOperationExecutor) {
    this.taskPlanExecutor = taskPlanExecutor;
    this.taskExecuter = taskExecuter;
    this.buildOperationExecutor = buildOperationExecutor;
    graphListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionGraphListener.class);
    taskListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionListener.class);
    internalTaskListener = listenerManager.getBroadcaster(InternalTaskExecutionListener.class);
    taskExecutionPlan = new DefaultTaskExecutionPlan(cancellationToken);
}
项目:Reer    文件:DefaultTaskGraphExecuter.java   
public void whenReady(final Action<TaskExecutionGraph> action) {
    graphListeners.add(new TaskExecutionGraphListener() {
        @Override
        public void graphPopulated(TaskExecutionGraph graph) {
            action.execute(graph);
        }
    });
}
项目:Reer    文件:DefaultTaskGraphExecuter.java   
public void addTaskExecutionGraphListener(TaskExecutionGraphListener listener) {
    graphListeners.add(listener);
}
项目:Reer    文件:DefaultTaskGraphExecuter.java   
public void removeTaskExecutionGraphListener(TaskExecutionGraphListener listener) {
    graphListeners.remove(listener);
}
项目:Pushjet-Android    文件:DefaultTaskGraphExecuter.java   
public DefaultTaskGraphExecuter(ListenerManager listenerManager, TaskPlanExecutor taskPlanExecutor, BuildCancellationToken cancellationToken) {
    this.taskPlanExecutor = taskPlanExecutor;
    graphListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionGraphListener.class);
    taskListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionListener.class);
    taskExecutionPlan = new DefaultTaskExecutionPlan(cancellationToken);
}
项目:Pushjet-Android    文件:DefaultTaskGraphExecuter.java   
public void addTaskExecutionGraphListener(TaskExecutionGraphListener listener) {
    graphListeners.add(listener);
}
项目:Pushjet-Android    文件:DefaultTaskGraphExecuter.java   
public void removeTaskExecutionGraphListener(TaskExecutionGraphListener listener) {
    graphListeners.remove(listener);
}
项目:Pushjet-Android    文件:DefaultTaskGraphExecuter.java   
public DefaultTaskGraphExecuter(ListenerManager listenerManager, TaskPlanExecutor taskPlanExecutor) {
    this.taskPlanExecutor = taskPlanExecutor;
    graphListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionGraphListener.class);
    taskListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionListener.class);
}
项目:Pushjet-Android    文件:DefaultTaskGraphExecuter.java   
public void addTaskExecutionGraphListener(TaskExecutionGraphListener listener) {
    graphListeners.add(listener);
}
项目:Pushjet-Android    文件:DefaultTaskGraphExecuter.java   
public void removeTaskExecutionGraphListener(TaskExecutionGraphListener listener) {
    graphListeners.remove(listener);
}