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. -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dropwizard-user/8c203356-e74d-48e7-be63-5707a4dff45c%40googlegroups.com.
