public abstract class StallionJavaPlugin extends Object
Constructor and Description |
---|
StallionJavaPlugin() |
Modifier and Type | Method and Description |
---|---|
abstract void |
boot()
The main method that gets called to load the plugin -- do everything here,
such as loading controllers, loading endpoints, etc.
|
void |
bootForPackage(String packagePath) |
void |
commandlineConfigure()
Override this to implement configuring this plugin via the command-line.
|
List<? extends StallionRunAction> |
getActions()
Get a list of available actions
|
abstract String |
getPluginName() |
List<String> |
getSqlMigrations() |
void |
setPluginRegistry(PluginRegistry pluginRegistry) |
void |
shutdown()
Override this to shutdown services when the Stallion AppContext shutsdown
|
void |
startServices()
This gets called after plugin load, when Stallion is running as an actual
web server.
|
void |
startServicesForTests()
Called by AppContextLoader.startServicesForTests(), which is called when loading
an app context via the BaseIntegrationTestCase JUnit test case base class.
|
public StallionJavaPlugin()
public abstract String getPluginName()
public List<String> getSqlMigrations()
public List<? extends StallionRunAction> getActions()
public void commandlineConfigure()
public abstract void boot() throws Exception
Exception
public void startServices()
public void startServicesForTests()
public void shutdown()
public void bootForPackage(String packagePath)
public void setPluginRegistry(PluginRegistry pluginRegistry)
Copyright © 2016. All rights reserved.