public class StartablePlugin extends AbstractPlugin
| Constructor and Description |
|---|
StartablePlugin(play.Application application) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStartable(Startable startable) |
void |
addStartables(java.util.Collection<? extends Startable> startables) |
static StartablePlugin |
getInstance() |
java.util.List<Startable> |
getStartables() |
void |
onStart() |
void |
onStartFailure(Startable startable,
java.lang.Throwable t) |
void |
onStop() |
void |
onStopFailure(Startable startable,
java.lang.Throwable t) |
getApplication, getApplicationContext, getConfigurationpublic static StartablePlugin getInstance()
public void addStartable(Startable startable)
public void addStartables(java.util.Collection<? extends Startable> startables)
public java.util.List<Startable> getStartables()
public void onStart()
onStart in interface play.api.PluginonStart in class AbstractPluginpublic void onStartFailure(Startable startable, java.lang.Throwable t)
public void onStop()
onStop in interface play.api.PluginonStop in class play.Pluginpublic void onStopFailure(Startable startable, java.lang.Throwable t)