playframework-1.x

How to extend the playframework?

╄→尐↘猪︶ㄣ 提交于 2019-11-27 18:00:24
Sometime it's necessary to extends a framework. Sometimes it's necessary to hook into the request/response lifecycle, for example for a parameter binding or to write a security module. How could this be done in the playframework 1.x? niels There are two ways to extend play 1.x. First you can write your own module. This is described in detail here . This is useful if you want provide a library such as iText or provide a special authentication mechanism. The second way is to write a PlayPlugin . This is often done in modules but it's not a necessary condition. To write a PlayPlugin requires two

Play! framework uses a <lot> of statics

被刻印的时光 ゝ 提交于 2019-11-27 05:09:40
问题 Waaah, the Play! framework has so many static methods. Where I go to school, we were told never ever to use any statics, yet Play! uses it like there's no tomorrow. Is that somehow okay? If so, why? We (7 people and I) are planning to use the Play! framework for a project involving a web app. We decided to do it with Play! because it looks quite fun to do, all of us already know Java and the assignment is pretty hard so we wanted to focus on the actual assignment rather than also learning how

How can I specify a local jar file as a dependency in Play! Framework 1.x

早过忘川 提交于 2019-11-27 01:52:42
问题 I have a jar file copied in the lib directory I'd like to run "play deps --sync" without this jar being deleted.. I've already looked at depency file documentation but couldn't figure out how to do it any idea? -- edit I've just found the answer: http://groups.google.com/group/play-framework/browse_thread/thread/b54e4e25ae49161b Gonna google around a bit more before asking here 回答1: just like the answer in google groups said, I could achieve it with the following dependencies.yml file for