O'Reilly logo

Play Framework Cookbook - Second Edition by Giancarlo Inductivo, Alexander Reelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Creating Plugins and Modules

In this chapter, we will cover the following recipes:

  • Creating and using your own plugin
  • Building a flexible registration module
  • Using the same model for different applications
  • Managing module dependencies
  • Adding private module repositories using Amazon S3

Introduction

In this chapter, we will look at how we can break down our Play 2.0 web applications into modular, reusable components. We will look at how we can create plugins and modules as a Play 2.0 subproject and as an independent module published in an internal module repository.

A Play 2.0 plugin can be useful when creating independent services and initializing shared resources such as database connections and Akka actor references. Other examples of useful ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required