I want to add an object to the Global scope, and in order to construct it I need to pass it a path to a file. I don\'t want to hard code the file path in the source, and so
From Play 2.4 and + it is better to use dependency injection to access Configurations:
Play 2.4 and +
import play.Configuration; import javax.inject.Inject; @Inject private Configuration configuration; ... String value = configuration.getString("your.key");