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
For Java Playframework:
In Application.conf, you can put something like that:
email="example@gmail.com.pe"
some class:
import play.Play; String email = Play.application().configuration().getString("key") // key ->email
import play.Play;
String email = Play.application().configuration().getString("key") // key ->email