Did you get your issue resolved, actually i am also new to dropwizard and 
my query is how run method of Command class gets executed bcz it is not 
getting executed automatically, would appreciate if you can suggest.

Thanks,
Ram

On Monday, November 25, 2019 at 1:40:23 PM UTC+5:30, Benjamin Podszun wrote:
>
> 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/169188f8-5f85-4c2b-ba18-48065ec2c18c%40googlegroups.com.

Reply via email to