Play uses Guice (JSR-330) for dependency injection. Controllers and components declare dependencies with @Inject constructors. Need How Inject a dependency @Inject public Ctrl(Service s) One shared instance annotate the class @Singleton Bind interface → implementation @ImplementedBy(Impl.class) or a Guice AbstractModule Register a module play.modules.enabled += "modules.AppModule" Different impl per environment branch on Environment / Config in the module Run code on startup eager singleton (bind(X.class).asEagerSingleton()) Clean up on shutdown ApplicationLifecycle.addStopHook Constructor injection keeps classes easy to unit test — just pass fakes to the constructor.