The application context.
Bind a server for the given service and factory for the service.
Bind a server for the given service and factory for the service.
Note, the type parameter for this method should always be passed explicitly, as the macro needs it to know what the trait for the service descriptor should be.
(Since version 1.4.0) prefer config
using typesafe Config instead
A Lagom application.
A Lagom service should subclass this in order to wire together a Lagom application.
This includes the Lagom server components (which builds and provides the Lagom router) as well as the Lagom service client components (which allows implementing Lagom service clients from Lagom service descriptors).
There are two abstract defs that must be implemented, one is LagomServerComponents.lagomServer, the other is LagomServiceClientComponents.serviceLocator. Typically, the
lagomServer
component will be implemented by an abstract subclass of this class, and will bind all the services that this Lagom application provides. Meanwhile, theserviceLocator
component will be provided by mixing in a service locator components trait in LagomApplicationLoader, which trait is mixed in will vary depending on whether the application is being loaded for production or for development.