There are three packages in the
app
directory, one for each component of the MVC architectural pattern:
app/controllers
app/models
app/views
You can of course add your own packages, for example an
app/utils
package.Note that in Play, the controllers, models and views package name conventions are now just that and can be changed if needed (such as prefixing everything with
com.yourcompany
).
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/81db949e-bda9-43db-aede-0d3749bc2478%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It's just a suggested practice to minimize collisions. Because other libraries typically follow the reverse DNS naming scheme, you're unlikely to encounter collisions with other libraries if you use something like "app.utils".
If you decide to release your library publicly I would strongly encourage you follow the reverse DNS scheme, though.
On Wed, Sep 13, 2017 at 6:47 PM, David Pinn <dp...@byandlarge.net> wrote:
The Play Framework 2.6 documentation has this to say about package naming:There are three packages in the
app
directory, one for each component of the MVC architectural pattern:
app/controllers
app/models
app/views
You can of course add your own packages, for example an
app/utils
package.Note that in Play, the controllers, models and views package name conventions are now just that and can be changed if needed (such as prefixing everything with
com.yourcompany
).I'd like to keep my package naming structure flat: app.utils rather than com.mycompany.utils; but would I be inviting name collisions with dependent libraries?
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/81db949e-bda9-43db-aede-0d3749bc2478%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.