public interface GenerationPhase
| Modifier and Type | Method and Description |
|---|---|
void |
callTasks()
Call all tasks delegated to the phase
|
int |
countTasks() |
default GenerationPhase |
delegate(GenerationTask<?> task,
Context delegated)
Delegate task using
GenerationTaskPriority.DEFAULT |
GenerationPhase |
delegate(GenerationTaskPriority priority,
GenerationTask<?> task,
Context delegated)
Delegate task
|
default GenerationPhase |
delegateAfter(GenerationTask<?> task,
Context delegated)
Delegate task using
GenerationTaskPriority.AFTER |
default GenerationPhase |
delegateBefore(GenerationTask<?> task,
Context delegated)
Delegate task using
GenerationTaskPriority.BEFORE |
void callTasks()
throws Exception
Exception - allows you to handle exception that may occur in tasksGenerationPhase delegate(GenerationTaskPriority priority, GenerationTask<?> task, Context delegated)
priority - the priority of task (the lowest is called first)task - the task to delegatedelegated - the data to associate with taskdefault GenerationPhase delegate(GenerationTask<?> task, Context delegated)
GenerationTaskPriority.DEFAULTdefault GenerationPhase delegateBefore(GenerationTask<?> task, Context delegated)
GenerationTaskPriority.BEFOREdefault GenerationPhase delegateAfter(GenerationTask<?> task, Context delegated)
GenerationTaskPriority.AFTERint countTasks()
Copyright © 2020. All rights reserved.