--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/a11038de-3cc5-477f-a4ac-55701c45db7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
List<Router.RouteDocumentation> myRoutes = app.getWrappedApplication().routes().asJava().documentation();Should I choose this new API over the code above, or it does not matter?
Thank you
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/4d071213-497a-4bc9-b3d8-005072cc1fb3%40googlegroups.com.
public class Application extends Controller {
@Inject
private Provider<Router> router;
public Result home() {
List<Router.RouteDocumentation> rds = router.get().documentation();
...
Thanks to Greg advice here : https://groups.google.com/forum/#!searchin/play-framework/routes$20list|sort:relevance/play-framework/vEYA2m_vxCU/2Adn3-YgBAAJ
Play framework is becoming so complexe ! Is there someone here that can explain why we need a "Provider<Router>" and not a simple "Router" ?
I find it very difficult to find documentation about DI in play and where i can find other Play entities like Router i can use ... any ressources/videos/books ?
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/9d92d58f-c6cc-4d41-9747-6586a4c08bea%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.