object Play
- Alphabetic
- By Inheritance
- Play
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
def
materializer(implicit app: Application): Materializer
A convenient function for getting an implicit materializer from the current application
-
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()
- def routesCompilerMaybeApplication: Option[Application]
-
def
start(app: Application): Unit
Sets the global application instance.
Sets the global application instance.
If another app was previously started using this API and the global application is enabled, Play.stop will be called on the existing application.
- app
the application to start
-
def
stop(app: Application): Unit
Stops the given application.
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
implicit
def
current: Application
Implicitly import the current running application in the context.
Implicitly import the current running application in the context.
Note that by relying on this, your code will only work properly in the context of a running application.
- Annotations
- @deprecated
- Deprecated
(Since version 2.5.0) This is a static reference to application, use DI instead
-
def
langCookieHttpOnly(implicit messagesApi: MessagesApi): Boolean
Returns whether the language cookie should have the HTTP only flag set.
Returns whether the language cookie should have the HTTP only flag set.
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) Use the MessagesApi itself
-
def
langCookieName(implicit messagesApi: MessagesApi): String
Returns the name of the cookie that can be used to permanently set the user's language.
Returns the name of the cookie that can be used to permanently set the user's language.
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) Use the MessagesApi itself
-
def
langCookieSecure(implicit messagesApi: MessagesApi): Boolean
Returns whether the language cookie should have the secure flag set.
Returns whether the language cookie should have the secure flag set.
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) Use the MessagesApi itself
-
def
maybeApplication: Option[Application]
Optionally returns the current running application.
Optionally returns the current running application.
- Annotations
- @deprecated
- Deprecated
(Since version 2.5.0) This is a static reference to application, use DI instead
-
def
unsafeApplication: Application
Returns the currently running application, or
null
if not defined.Returns the currently running application, or
null
if not defined.- Annotations
- @deprecated
- Deprecated
(Since version 2.5.0) This is a static reference to application, use DI