How do I retrieve an object injected through Guice

51 views
Skip to first unread message

Arul Prakasam Narasimhan

unread,
Aug 29, 2018, 12:56:14 PM8/29/18
to google-guice
Under my Module Class, I inject objects

 @Override
    protected void configure() {
        bind(AuthorizationService.class).asEagerSingleton();
        bind(BasicAuthenticationService.class).asEagerSingleton();
        bind(BasicCredentialsHashingService.class).asEagerSingleton();
   }

Now how do I retrieve these objects if required inside my Plugin Class.
I need to retrieve these objects, add another property value to it.

Thanks
Arul.

Stephan Classen

unread,
Aug 29, 2018, 1:46:23 PM8/29/18
to google...@googlegroups.com
Checkout the tutorial in the guice github wiki:
https://github.com/google/guice/wiki/GettingStarted
Reply all
Reply to author
Forward
0 new messages