Annotation Interface StepContextParameter
@Deprecated
@Retention(RUNTIME)
@Target({METHOD,FIELD})
@Documented
public @interface StepContextParameter
Deprecated.
Injects value from
StepContext.get(Class).
Used on methods and fields of the subtype of AbstractStepExecutionImpl.
AbstractStepImpl.start(org.jenkinsci.plugins.workflow.steps.StepContext) and AbstractStepExecutionImpl.onResume() will inject context variables
to those fields.- Author:
- Kohsuke Kawaguchi
- See Also:
StepContext.get(java.lang.Class<T>)as needed and avoid Guice.