The Play framework documentation is kind of weak when it comes to module creation.
I think you get the idea... tell us all about Modules using the Playframework.
Play Framework is an open-source web application framework which follows the model–view–controller (MVC) architectural pattern. It is written in Scala and usable from other programming languages that are compiled to JVM bytecode, e.g. Java.
The goal of Play is to be a general purpose programming language which focuses on immutability and controlled side effects. Factor favors mutable data structures.
play new-module
Well you put components which functionality, for example security or user-management in a module. This module will be referred by you app.
There are no special things that can be done with a module, with can't be done in your app directly. So if you need a special feature only in 1 app you can program it there directly.
There are no limits, you can declare there abstract-classes. Same as in a library.
play build-module
I mean in the discussion group there was plugin which enables you to run a private repository. If it was from general interest and you want to contribute it the whole community register it as a playframework.org, see the guide.
[UPDATE] I copied some information about the src
-folder from google-group. The src
-folder is for static utility-classes which are not play-specific and Play plugin. They will compiled as jars and put into the lib directory.
Niels
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With