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!"); } }
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