In this recipe, we will tackle the topic of adding Play modules to your Play 2.0 application, which further demonstrates how powerful the Play 2.0 ecosystem is. This recipe requires the previous recipe to be run and assumes that you have followed on.
For Java, we need to perform the following steps:
foo_javaapplication with Hot-Reloading enabled:
fooscala user-contribmodule as a project dependency in
"fooscala" %% "user-contrib" % "1.0-SNAPSHOT", "foojava" %% "product-contrib" % "1.0-SNAPSHOT"
foo_java/app/controllers/Application.javaby adding the following action:
// Add the required imports import productcontrib.services.ProductService; import productcontrib.services.ProductServiceImpl; ...