The domain you would like to fetch settings for
Optionally, a callback called when the data gets fetched, provided to allow you to perform logging
Optionally, the quartz scheduler instance to use. It defaults to the default scheduler but customising it may be useful if you want more control over the scheduler's lifecycle
Implicit instance of dispatch.Http used to make the call to fetch the public settings
Implicit execution context used to fetch the settings
Class that contains the static public settings and includes mechanism for fetching the public key. The class is parametrized by domain because the keys will differ for different domains. It also requires a dispatch.Http instance for retrieving the data and an execution context.
Once you have an instance you can call its start method to kick off loading the public data. In a Play app, consider using the
Global
object'sonStart
method to start these calls when the application comes up. If you'd rather use your own scheduler you can do so while still using the PublicSettings class by scheduling your own calls to itsrefresh
method can also schdule the refresh yourself using the instance's