Module
.@Deprecated
public class Plugin
extends java.lang.Object
implements play.api.Plugin
Application
, for example:
public class MyPlugin extends Plugin { private final Application app; public MyPlugin(Application app) { this.app = app; } public void onStart() { Logger.info("Plugin started!"); } }
Constructor and Description |
---|
Plugin()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
enabled()
Deprecated.
Is this plugin enabled.
|
void |
onStart()
Deprecated.
Called when the application starts.
|
void |
onStop()
Deprecated.
Called when the application stops.
|
public void onStart()
onStart
in interface play.api.Plugin
public void onStop()
onStop
in interface play.api.Plugin
public boolean enabled()
enabled
in interface play.api.Plugin