|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.Play
public class Play
Main framework class
Nested Class Summary | |
---|---|
static class |
Play.Mode
2 modes |
Field Summary | |
---|---|
static java.io.File |
applicationPath
The application root |
static ApplicationClasses |
classes
All loaded application classes |
static ApplicationClassloader |
classloader
The application classLoader |
static java.util.Properties |
configuration
The app configuration (already resolved from the framework id) |
static java.util.Set<VirtualFile> |
confs
The loaded configuration files |
static java.lang.String |
ctxPath
Context path (when several application are deployed on the same host) |
static java.lang.String |
defaultWebEncoding
This is used as default encoding everywhere related to the web: request, response, WS |
static boolean |
forceProd
|
static java.io.File |
frameworkPath
The framework root |
static java.lang.String |
id
The framework ID |
static boolean |
initialized
Is the application initialized |
static java.util.List<VirtualFile> |
javaPath
All paths to search for Java files |
static java.util.List<java.lang.String> |
langs
The list of supported locales |
static boolean |
lazyLoadTemplates
Lazy load the templates on demand |
static Play.Mode |
mode
The application mode |
static java.util.Map<java.lang.String,VirtualFile> |
modules
Modules |
static java.util.Map<java.lang.String,VirtualFile> |
modulesRoutes
Plugin routes files |
static PluginCollection |
pluginCollection
pluginCollection that holds all loaded plugins and all enabled plugins.. |
static java.util.List<PlayPlugin> |
plugins
Deprecated. |
static boolean |
readOnlyTmp
tmp dir is readOnly |
static java.util.List<VirtualFile> |
roots
All paths to search for files |
static VirtualFile |
routes
Main routes file |
static java.lang.String |
secretKey
The very secret key |
static boolean |
standalonePlayServer
This flag indicates if the app is running in a standalone Play server or as a WAR in an applicationServer |
static boolean |
started
Is the application started |
static long |
startedAt
The last time than the application has started |
static java.util.List<VirtualFile> |
templatesPath
All paths to search for templates files |
static java.io.File |
tmpDir
tmp dir |
static boolean |
usePrecompiled
|
static java.lang.String |
version
Framework version |
Constructor Summary | |
---|---|
Play()
|
Method Summary | ||
---|---|---|
static void |
addModule(java.lang.String name,
java.io.File path)
Add a play application (as plugin) |
|
static void |
detectChanges()
Detect sources modifications |
|
static void |
fatalServerErrorOccurred()
Call this method when there has been a fatal error that Play cannot recover from |
|
static java.io.File |
getFile(java.lang.String path)
Search a File in the current application |
|
static VirtualFile |
getVirtualFile(java.lang.String path)
Search a VirtualFile in all loaded applications and plugins |
|
static void |
guessFrameworkPath()
|
|
static void |
init(java.io.File root,
java.lang.String id)
Init the framework |
|
static void |
initStaticStuff()
Allow some code to run very early in Play - Use with caution ! |
|
static void |
loadModules()
Load all modules. |
|
static
|
plugin(java.lang.Class<T> clazz)
|
|
static void |
readConfiguration()
Read application.conf and resolve overriden key using the play id mechanism. |
|
static boolean |
runingInTestMode()
Returns true if application is runing in test-mode. |
|
static void |
start()
Start the application. |
|
static void |
stop()
Stop the application |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean initialized
public static boolean started
public static java.lang.String id
public static Play.Mode mode
public static java.io.File applicationPath
public static java.io.File tmpDir
public static boolean readOnlyTmp
public static java.io.File frameworkPath
public static ApplicationClasses classes
public static ApplicationClassloader classloader
public static java.util.List<VirtualFile> roots
public static java.util.List<VirtualFile> javaPath
public static java.util.List<VirtualFile> templatesPath
public static VirtualFile routes
public static java.util.Map<java.lang.String,VirtualFile> modulesRoutes
public static java.util.Set<VirtualFile> confs
public static java.util.Properties configuration
public static long startedAt
public static java.util.List<java.lang.String> langs
public static java.lang.String secretKey
public static PluginCollection pluginCollection
@Deprecated public static java.util.List<PlayPlugin> plugins
public static java.util.Map<java.lang.String,VirtualFile> modules
public static java.lang.String version
public static java.lang.String ctxPath
public static boolean usePrecompiled
public static boolean forceProd
public static boolean lazyLoadTemplates
public static java.lang.String defaultWebEncoding
public static boolean standalonePlayServer
Constructor Detail |
---|
public Play()
Method Detail |
---|
public static void init(java.io.File root, java.lang.String id)
root
- The application pathid
- The framework id to usepublic static void guessFrameworkPath()
public static void readConfiguration()
public static void start()
public static void stop()
public static void detectChanges()
public static <T> T plugin(java.lang.Class<T> clazz)
public static void initStaticStuff()
public static void loadModules()
public static void addModule(java.lang.String name, java.io.File path)
path
- The application pathpublic static VirtualFile getVirtualFile(java.lang.String path)
path
- Relative path from the applications root
public static java.io.File getFile(java.lang.String path)
path
- Relative path from the application root
public static boolean runingInTestMode()
public static void fatalServerErrorOccurred()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |