Class

com.lightbend.lagom.scaladsl.server

LagomApplicationLoader

Related Doc: package server

Permalink

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.

Source
LagomApplicationLoader.scala
Linear Supertypes
ServiceDiscovery, ApplicationLoader, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LagomApplicationLoader
  2. ServiceDiscovery
  3. ApplicationLoader
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LagomApplicationLoader()

    Permalink

Abstract Value Members

  1. abstract def load(context: LagomApplicationContext): LagomApplication

    Permalink

    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

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from LagomApplicationLoader to any2stringadd[LagomApplicationLoader] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (LagomApplicationLoader, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from LagomApplicationLoader to ArrowAssoc[LagomApplicationLoader] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def describeService: Option[Descriptor]

    Permalink

    Implement this to allow tooling, such as ConductR, to discover the service (if any) offered by this application.

    Implement this to allow tooling, such as ConductR, 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])

  9. final def discoverServices(classLoader: ClassLoader): List[ServiceDescription]

    Permalink
    Definition Classes
    LagomApplicationLoader → ServiceDiscovery
  10. def ensuring(cond: (LagomApplicationLoader) ⇒ Boolean, msg: ⇒ Any): LagomApplicationLoader

    Permalink
    Implicit information
    This member is added by an implicit conversion from LagomApplicationLoader to Ensuring[LagomApplicationLoader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (LagomApplicationLoader) ⇒ Boolean): LagomApplicationLoader

    Permalink
    Implicit information
    This member is added by an implicit conversion from LagomApplicationLoader to Ensuring[LagomApplicationLoader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): LagomApplicationLoader

    Permalink
    Implicit information
    This member is added by an implicit conversion from LagomApplicationLoader to Ensuring[LagomApplicationLoader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): LagomApplicationLoader

    Permalink
    Implicit information
    This member is added by an implicit conversion from LagomApplicationLoader to Ensuring[LagomApplicationLoader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from LagomApplicationLoader to StringFormat[LagomApplicationLoader] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. final def load(context: Context): Application

    Permalink

    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
  22. def loadDevMode(context: LagomApplicationContext): LagomApplication

    Permalink

    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.

  23. val logger: Logger

    Permalink
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. macro def readDescriptor[S <: Service]: Descriptor

    Permalink

    Describe a service, for use when implementing describeService.

    Describe a service, for use when implementing describeService.

    Attributes
    protected
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def [B](y: B): (LagomApplicationLoader, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from LagomApplicationLoader to ArrowAssoc[LagomApplicationLoader] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def describeServices: Seq[Descriptor]

    Permalink

    Deprecated: implement describeService instead.

    Deprecated: implement describeService instead. Multiple service interfaces should either be combined into a single service, or split into multiple service projects.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.3) Binding multiple locatable ServiceDescriptors per Lagom service is unsupported. Override LagomApplicationLoader.describeService() instead

Inherited from ServiceDiscovery

Inherited from ApplicationLoader

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from LagomApplicationLoader to any2stringadd[LagomApplicationLoader]

Inherited by implicit conversion StringFormat from LagomApplicationLoader to StringFormat[LagomApplicationLoader]

Inherited by implicit conversion Ensuring from LagomApplicationLoader to Ensuring[LagomApplicationLoader]

Inherited by implicit conversion ArrowAssoc from LagomApplicationLoader to ArrowAssoc[LagomApplicationLoader]

Ungrouped