On Fri, Sep 9, 2016 at 12:57 PM, Dan Jasek <
d...@jasek.org> wrote:
> Anyone have a suggestion on what I am doing wrong?
Do not see anything obvious wrong. I would start by getting rid of
Lombok here, as a likely source of risk. Or set a breakpoint in
`AbstractStepImpl.prepareInjector`.
> As the problem is in the magic of DI, I have hit a brick wall on where to go
> from here.
You are not obliged to use DI. Just extend `Step` and `StepDescriptor`
directly, and your `Step.start` can call whatever constructor you like
of the execution. You can still extend
`AbstractSynchronousNonBlockingStepExecution` to pick up its
background thread semantics; just call the `super` constructor taking
`StepContext`. For context parameters, call `StepContext.get`, and
list them in `getRequiredContext`. Really it is not much more code
than the DI version, and a lot easier to understand and debug. Kohsuke
is just enamored of Guice. :-/