I want to be able to access configuration variables within my controller classes in scala play 2.5. The use case is to be able to configure a cryptographic signing key that the server will use. What is the proper way to wire this together? I get from reading around that I am supposed to use Guice to inject the required configuration into my controller class, but I haven't found a fully wired example. Within the Guice module, how would I declare the correct implementation of the configuration class?
I guess it would be something like this in the configure method of a class overriding AbstractModule
bind(classOf[Configuration]).to XXX
What's the XXX? And am I going about this correctly in the first place?
Thanks,
Jacob