|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.Plugin
public class Plugin
A Play plugin.
A plugin must define a single argument constructor that accepts an 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 Summary | |
---|---|
Plugin()
|
Method Summary | |
---|---|
boolean |
enabled()
Is this plugin enabled. |
void |
onStart()
Called when the application starts. |
void |
onStop()
Called when the application stops. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Plugin()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |