public final class Application extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getBaseDirectory() |
static Config |
getConfig() |
static com.google.inject.Injector |
getInjector()
Returns the Google Guice Injector
|
static <T> T |
getInstance(Class<T> clazz)
Short form for getting an Goolge Guice injected class by
calling injector.getInstance(...)
|
static Cache |
getInternalCache() |
static TemplateEngine |
getInternalTemplateEngine() |
static Mode |
getMode()
Returns the current mode the application is running in
|
static LocalDateTime |
getStart() |
static Duration |
getUptime() |
static boolean |
inDevMode()
Checks if the application is running in dev mode
|
static boolean |
inProdMode()
Checks if the application is running in prod mode
|
static boolean |
inTestMode()
Checks if the application is running in test mode
|
static boolean |
isStarted() |
static void |
main(String... args) |
public static void main(String... args)
public static boolean inDevMode()
public static boolean inProdMode()
public static boolean inTestMode()
public static Mode getMode()
public static com.google.inject.Injector getInjector()
public static boolean isStarted()
public static LocalDateTime getStart()
public static Config getConfig()
public static TemplateEngine getInternalTemplateEngine()
public static Cache getInternalCache()
public static Duration getUptime()
public static <T> T getInstance(Class<T> clazz)
T - JavaDoc requires this (just ignore it)clazz - The class to retrieve from the injectorpublic static String getBaseDirectory()
Copyright © 2016. All rights reserved.