public class AppContextLoader extends Object
Constructor and Description |
---|
AppContextLoader() |
Modifier and Type | Method and Description |
---|---|
DataAccessRegistry |
dal()
Deprecated.
|
AssetsController |
getAssetsController()
Deprecated.
|
DataAccessRegistry |
getDal()
Deprecated.
|
String |
getEnv()
Deprecated.
|
FileSystemWatcherRunner |
getFileSystemWatcherRunner()
Deprecated.
|
RequestHandler |
getHandler()
Deprecated.
|
JinjaTemplating |
getJinjaTemplating()
Deprecated.
|
TextItemController |
getPageController()
Deprecated.
|
PluginRegistry |
getPluginRegistry()
Deprecated.
|
Integer |
getPort()
Deprecated.
|
TextItemController |
getPostController()
Deprecated.
|
Settings |
getSettings()
Deprecated.
|
SlugRegistry |
getSlugRegistry()
Deprecated.
|
String |
getTargetFolder()
Deprecated.
|
TemplateRenderer |
getTemplateRenderer()
Deprecated.
|
Tickets |
getTickets()
Deprecated.
|
UserController<User> |
getUserController()
Deprecated.
|
static AppContextLoader |
instance() |
static boolean |
isNull() |
static AppContextLoader |
loadAndStartForTests(CommandOptionsBase options)
Same as calling loadCompletely() and startServicesForTests(), but configures in a way suitable for tests
Some services, such as jobs, will not be started.
|
static AppContextLoader |
loadAndStartForTests(String targetFolder)
Same as calling loadCompletely() and startServicesForTests(), but configures in a way suitable for tests
Some services, such as jobs, will not be started.
|
Class |
loadClass(String className)
Deprecated.
|
Class |
loadClass(String pluginName,
String className)
Deprecated.
|
static AppContextLoader |
loadCompletely(CommandOptionsBase options)
Calls load completely as non-script, in non-test mode
|
static AppContextLoader |
loadCompletely(CommandOptionsBase options,
boolean isScript)
Calls load completely in non-test mode
|
static AppContextLoader |
loadCompletely(CommandOptionsBase options,
boolean isScript,
boolean testMode)
Loads the entire Stallion application.
|
static AppContextLoader |
loadCompletelyForScript(CommandOptionsBase options)
Calls load completely in script mode, in non-test mode
|
static AppContextLoader |
loadWithSettingsOnly(CommandOptionsBase options)
Instaniates the _app singleton but only hydrates the settings.
|
static void |
shutdown()
Shutsdown all services, destroys all singletons, de-loads everything from memory.
|
AppContextLoader |
startAllServices()
Starts all services
- starts the async task processing
- starts the job runner
- starts watching the file system for changes
- etc.
|
AppContextLoader |
startServicesForTests()
Starts only the services that are applicable for doing integration tests.
|
public AppContextLoader()
public static boolean isNull()
public static AppContextLoader instance()
public static AppContextLoader loadWithSettingsOnly(CommandOptionsBase options)
options
- public static AppContextLoader loadCompletely(CommandOptionsBase options)
options
- public static AppContextLoader loadCompletelyForScript(CommandOptionsBase options)
options
- public static AppContextLoader loadCompletely(CommandOptionsBase options, boolean isScript)
options
- public static AppContextLoader loadCompletely(CommandOptionsBase options, boolean isScript, boolean testMode)
options
- isScript
- testMode
- public static AppContextLoader loadAndStartForTests(String targetFolder)
targetFolder
- public static AppContextLoader loadAndStartForTests(CommandOptionsBase options)
options
- public static void shutdown()
public AppContextLoader startAllServices()
public AppContextLoader startServicesForTests()
@Deprecated public Class loadClass(String className)
@Deprecated public Class loadClass(String pluginName, String className)
@Deprecated public String getEnv()
@Deprecated public String getTargetFolder()
@Deprecated public TextItemController getPageController()
@Deprecated public TextItemController getPostController()
@Deprecated public Settings getSettings()
@Deprecated public DataAccessRegistry getDal()
@Deprecated public DataAccessRegistry dal()
@Deprecated public Integer getPort()
@Deprecated public RequestHandler getHandler()
@Deprecated public FileSystemWatcherRunner getFileSystemWatcherRunner()
@Deprecated public TemplateRenderer getTemplateRenderer()
@Deprecated public AssetsController getAssetsController()
@Deprecated public SlugRegistry getSlugRegistry()
@Deprecated public UserController<User> getUserController()
@Deprecated public Tickets getTickets()
@Deprecated public PluginRegistry getPluginRegistry()
@Deprecated public JinjaTemplating getJinjaTemplating()
Copyright © 2016. All rights reserved.