play.api
A Play plugin.
A plugin must define a single argument constructor that accepts an play.api.Application. For example:
class MyPlugin(app: Application) extends Plugin { override def onStart() = { Logger.info("Plugin started!") } }
The plugin class must be declared in a play.plugins file available in the classpath root:
1000:myapp.MyPlugin
The associated int defines the plugin priority.
(Since version 2.4.0) Use modules instead. See play.api.inject.Module
play.api.inject.Module
Is the plugin enabled?
Called when the application starts.
Called when the application stops.
A Play plugin.
A plugin must define a single argument constructor that accepts an play.api.Application. For example:
The plugin class must be declared in a play.plugins file available in the classpath root:
1000:myapp.MyPlugin
The associated int defines the plugin priority.
(Since version 2.4.0) Use modules instead. See
play.api.inject.Module