Annotation Type TaskId


  • @Qualifier
    @Retention(RUNTIME)
    @Target({FIELD,PARAMETER,METHOD,TYPE})
    public @interface TaskId
    Qualifier annotation for injecting the current taskId.

    Example:

     @Inject @TaskId String currentTaskId
     
    Note that the current Task is also available for injection:
     @Inject Task task;
     
    Author:
    Daniel Meyer