dynamically reload the property bindings using guice .

42 views
Skip to first unread message

Bharath Vishnu Neelakantan

unread,
Dec 10, 2018, 12:34:42 PM12/10/18
to google-guice
I load the key value pair for configs from a url and then bind it using guice Names.bindProperties . Is there a way to dynamically reload this binding when we make a post call to the app ?.

Stephan Classen

unread,
Dec 10, 2018, 3:55:25 PM12/10/18
to google...@googlegroups.com
Not when you are using Names.bindProperties.
What you could do is bind custom provider methods for the different config parameters.
This provider methods are then under your control and you can cache/reload the value as you like.



On 10.12.18 18:34, Bharath Vishnu Neelakantan wrote:
I load the key value pair for configs from a url and then bind it using guice Names.bindProperties . Is there a way to dynamically reload this binding when we make a post call to the app ?.
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice...@googlegroups.com.
To post to this group, send email to google...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/1e926131-6b8d-4d22-8121-bd2c2204efbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages