The Default Step Implementation is used for creating steps on the fly from the Pipeline Configuration.
It works by leveraging container images as pipeline runtime dependencies, executing a command or script inside the container image, and then allowing you to stash artifacts generated by the step.
Care should be taken when exposing this functionality to users.
The Jenkins Templating Engine exposes a feature called Pipeline Lifecycle Hooks that allows methods defined within library steps to register themselves to be automatically executed in response to events from the pipeline.
These annotations accept Closure parameters for conditional hook execution to dynamically determine if a hook should be invoked.