abstract class LagomApplicationLoader extends ApplicationLoader with ServiceDiscovery
A Play application loader for Lagom.
Scala Lagom applications should provide a subclass of this to create their application, and configure it in their
application.conf file using:
play.application.loader = com.example.MyApplicationLoader
This class provides an abstraction over Play's application loader that provides Lagom specific functionality.
- Alphabetic
- By Inheritance
- LagomApplicationLoader
- ServiceDiscovery
- ApplicationLoader
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LagomApplicationLoader()
Abstract Value Members
- abstract def load(context: LagomApplicationContext): LagomApplication
Load a Lagom application for production.
Load a Lagom application for production.
This should mix in a production service locator implementation, and anything else specific to production, to an application provided subclass of LagomApplication. It will be invoked to load the application in production.
- context
The Lagom application context.
- returns
A Lagom application.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from LagomApplicationLoader toany2stringadd[LagomApplicationLoader] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (LagomApplicationLoader, B)
- Implicit
- This member is added by an implicit conversion from LagomApplicationLoader toArrowAssoc[LagomApplicationLoader] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def describeService: Option[Descriptor]
Implement this to allow tooling, such as Lightbend Orchestration, to discover the service (if any) offered by this application.
Implement this to allow tooling, such as Lightbend Orchestration, to discover the service (if any) offered by this application.
This will be used to generate configuration regarding ACLs and service name for production deployment.
For example:
override def describeService = Some(readDescriptor[MyService]) - final def discoverServices(classLoader: ClassLoader): List[ServiceDescription]
- Definition Classes
- LagomApplicationLoader → ServiceDiscovery
- def ensuring(cond: (LagomApplicationLoader) => Boolean, msg: => Any): LagomApplicationLoader
- Implicit
- This member is added by an implicit conversion from LagomApplicationLoader toEnsuring[LagomApplicationLoader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (LagomApplicationLoader) => Boolean): LagomApplicationLoader
- Implicit
- This member is added by an implicit conversion from LagomApplicationLoader toEnsuring[LagomApplicationLoader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): LagomApplicationLoader
- Implicit
- This member is added by an implicit conversion from LagomApplicationLoader toEnsuring[LagomApplicationLoader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): LagomApplicationLoader
- Implicit
- This member is added by an implicit conversion from LagomApplicationLoader toEnsuring[LagomApplicationLoader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from LagomApplicationLoader toStringFormat[LagomApplicationLoader] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def load(context: Context): Application
Implementation of Play's load method.
Implementation of Play's load method.
Since Lagom applications need to use a different wiring in dev mode, using the dev mode service locator and registry, to what they use in prod, this separates the two possibilities out, invoking the load() method for prod, and the loadDevMode() method for development.
It also wraps the Play specific types in Lagom types.
- Definition Classes
- LagomApplicationLoader → ApplicationLoader
- def loadDevMode(context: LagomApplicationContext): LagomApplication
Load a Lagom application for development.
Load a Lagom application for development.
This should mix in LagomDevModeComponents with an application provided subclass of LagomApplication, such that the service locator used will be the dev mode service locator, and so that services get registered with the dev mode service registry.
- context
The Lagom application context.
- returns
A lagom application.
- val logger: Logger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- macro def readDescriptor[S <: Service]: Descriptor
Describe a service, for use when implementing describeService.
Describe a service, for use when implementing describeService.
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def →[B](y: B): (LagomApplicationLoader, B)
- Implicit
- This member is added by an implicit conversion from LagomApplicationLoader toArrowAssoc[LagomApplicationLoader] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.