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
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
to google...@googlegroups.com
Could you give some more details. Best would be some code example
Reply all
Reply to author
Forward
0 new messages