Groups
Groups
Sign in
Groups
Groups
google-guice
Conversations
About
Send feedback
Help
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 PM
8/29/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
8/29/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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