chaozi204 / play2-maven-plugin

Automatically exported from code.google.com/p/play2-maven-plugin
0 stars 0 forks source link

Implement all new router features available in Play! 2.4.x #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Routes compilation in Play! 2.4.x is much more complicated.

There are two generators:
- static - generates code calling static controller methods, this method was 
used in previous Play! framework versions (2.1.x - 2.3.x),
- injected - generates code calling instance controller methods, controller 
instances are injected by DI framework.

Additionally, routes compilation is much more parameterizable.

Original issue reported on code.google.com by gslowiko...@gmail.com on 14 May 2015 at 12:56

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/play2-maven-plugin/source/detail?r=1233 - routes 
generator for Play! 2.4.x writes "routes" file products ("routes_routing.scala" 
and "routes_reverseRouting.scala" files) in "router" subdirectory of managed 
source root ("target/src_managed/main" directory), generators for previous 
Play! versions write these files directly in managed source root. This small 
difference results in new "String getDefaultNamespace()" method in 
"Play2RoutesCompiler" interface.

Original comment by gslowiko...@gmail.com on 14 May 2015 at 1:20

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/play2-maven-plugin/source/detail?r=1234 - additional 
"controllers.Assets.Asset" value in generated import statements (for both: java 
and scala).

Original comment by gslowiko...@gmail.com on 14 May 2015 at 1:25

GoogleCodeExporter commented 9 years ago
New `1.0.0-beta2-SNAPSHOT` snapshot deployed.

Original comment by gslowiko...@gmail.com on 14 May 2015 at 1:28

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/play2-maven-plugin/source/detail?r=1236 - added mojo 
parameter "String routesGenerator" (supported only by Play! 2.4.x), allowed 
values are "static" (default) and "injected", "void setGenerator( String 
generator )" method added to "Play2RoutesCompiler" interface and all 
implementations, only Play! 2.4.x implementation makes use of it.

Original comment by gslowiko...@gmail.com on 14 May 2015 at 2:19

GoogleCodeExporter commented 9 years ago
New '1.0.0-beta2-SNAPSHOT' snapshot deployed.

Original comment by gslowiko...@gmail.com on 14 May 2015 at 2:36

GoogleCodeExporter commented 9 years ago

Original comment by gslowiko...@gmail.com on 19 May 2015 at 9:20

GoogleCodeExporter commented 9 years ago
There are more changes in router compilation introduced in Play! 2.4.0-RC5. New 
issue #74 was created.

Original comment by gslowiko...@gmail.com on 29 May 2015 at 9:34