@Qualifier @Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER,METHOD,TYPE}) public @interface TaskId
@Inject
@TaskId String currentTaskId
Note that the current Task
is also available for injection:
@Inject
Task task;
Copyright © 2017. All rights reserved.