package condition
Provides some Play-specific conditions that can be used in the mappings:
bind [MessageService] when (inDevMode or inTestMode) to new SimpleMessageService bind [MessageService] when inProdMode to new OfficialMessageService
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- condition
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- case class ModeCondition (mode: Mode)(implicit inj: Injector) extends Condition with Product with Serializable
Value Members
-
def
inDevMode(implicit inj: Injector): ModeCondition
Play application is started in Dev mode
-
def
inProdMode(implicit inj: Injector): ModeCondition
Play application is started in Prod mode
-
def
inTestMode(implicit inj: Injector): ModeCondition
Play application is started in Test mode