play
Class Play

java.lang.Object
  extended by play.Play

public class Play
extends java.lang.Object

High-level API to access Play global features.


Constructor Summary
Play()
           
 
Method Summary
static Application application()
          Returns the currently running application.
static boolean isDev()
          Returns `true` if the current application is `DEV` mode.
static boolean isProd()
          Returns `true` if the current application is `PROD` mode.
static boolean isTest()
          Returns `true` if the current application is `TEST` mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Play

public Play()
Method Detail

application

public static Application application()
Returns the currently running application.


isDev

public static boolean isDev()
Returns `true` if the current application is `DEV` mode.


isProd

public static boolean isProd()
Returns `true` if the current application is `PROD` mode.


isTest

public static boolean isTest()
Returns `true` if the current application is `TEST` mode.