May 2015
Intermediate to advanced
274 pages
5h 11m
English
In order to make our applications manageable, we break them down into independent modules. These modules can also be extracted into individual projects/libraries.
A Play plugin is nothing but another module with an additional ability—of binding tasks before starting, on starting and/or stopping a Play application. In this chapter, we will see how to write custom plugins.
In this chapter, we will cover the following topics:
A Play plugin can be defined by extending play.api.plugin, which is defined as follows:
trait Plugin { //Called when the application starts. def onStart() {} // Called when the application ...Read now
Unlock full access