Last change
on this file since 322 was
322,
checked in by hendrikvanantwerpen, 13 years ago
|
Added Play! framework and application with Jena dependency. Working on
the basic things now (login/register), after that start implementing
our data model.
|
File size:
858 bytes
|
Line | |
---|
1 | # Building on top of Play |
---|
2 | |
---|
3 | _Note: this is a somewhat advanced topic, most users safely can ignore this_ |
---|
4 | |
---|
5 | While one can really take advantage of most play features while building a full application from scratch using play, it's very easy to drop play into existing sbt/maven projects and with just a little work use it as a REST/HTTP library. Below you can see how to do that. |
---|
6 | |
---|
7 | # Rolling your own |
---|
8 | |
---|
9 | A ```Global``` object extending ```GlobalSettings``` in the global name space is the key wiring point. GlobalSettings has a method ``` def onRouteRequest(request: RequestHeader): Option[Handler] ``` that's handling play's routing. |
---|
10 | |
---|
11 | One could easily provide an alternative implementation and start using play as a REST library! |
---|
12 | |
---|
13 | See [this](https://github.com/typesafehub/play2-mini/blob/master/src/main/scala/com/typesafe/play/mini/Setup.scala) for an example. |
---|
Note: See
TracBrowser
for help on using the repository browser.