Hi.
New to dropwizard. I have a service that I want to use from both a resource (that should be fine) and from a command (that is my problem).
As the subject says: Given that the two overloads for bootstrap.addCommand() take instances, how do I make DI work for commands as well?
I don't have access to the service locator at that point. While I know how to access the service locator in run(), that doesn't help me to retroactively create/register (or inject into) my commands, right?
Am I missing something obvious?
Thanks.