If being used in a Lagom service, this will be implemented by com.lightbend.lagom.scaladsl.server.LagomServerComponents, however if it's being used by a Play application, this will need to be provided manually.
If being used in a Lagom service, this will be implemented by com.lightbend.lagom.scaladsl.server.LagomServerComponents, however if it's being used by a Play application, this will need to be provided manually.
Provides the Lagom dev mode components.
This trait primarily has two responsibilities, it provides a service locator that uses Lagom's development service locator, and it registers any services returned by the
serviceInfo
component with the Lagom develompent service registry.It can be used both by Lagom services, and also by non Lagom services, such as pure Play applications, in order to use the Lagom dev mode service locator and register components with Lagom. When used with non Lagom applications,
serviceInfo
will need to manually be implemented to return the service name and any ACLs for the service gateway to use.It expects the service locator URL to be provided using the
lagom.service-locator.url
property, which by default will be automatically provided to the service by Lagom's dev mode build plugins.