Two instances of the same class, different properties, is it possible?
33 views
Skip to first unread message
jhertz
unread,
Feb 18, 2019, 4:16:20 PM2/18/19
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
I have two instances of the same class. I want to inject them with two different set of properties in the form of a Map<String, String>. The instances are read dynamically from and XML file so I won't know until run time if there are 1, 2 or X amount of instances. Is this possible?
Regards
jhz
Stephan Classen
unread,
Feb 18, 2019, 5:22:52 PM2/18/19
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
Could you give some more details. Best would be some code example