Play module intends to speed up development of large projects with Play 1 framework.
This is a work in progress.
The aim is to:
- disable enhancers
- disable Play's own compilation of Java code
- simplify classloading
- Add this line to your
play.plugins:
0:play.rebel.PlayRebelAntiEnhancerPlugin
2000:play.rebel.migration.LegacyRedirectsDetector
- Start your Play application
- Find phrase
legacy redirectsin logs - Add this line to every controller:
protected static Redirector redirect = new Redirector();- Replace every call to "action" method, like
SomeController.someAction()by
redirect.to("SomeController.someAction");- Replace every call to "action" method with parameters, like
SomeController.someAction(42, "yip")by
redirect.with("userId", 42).with("password", "yip").to("SomeController.someAction");- Replace every call to
Validation.valid(Object)with a call toValidation.valid(String, Object) - Don't use methods:
play.db.jpa.GenericModel.validateAndSave()play.db.jpa.GenericModel.validateAndCreate()