conf
Class Routes
java.lang.Object
conf.Routes
- All Implemented Interfaces:
- ApplicationRoutes
public class Routes
- extends Object
- implements ApplicationRoutes
Method Summary |
void |
init(Router router)
Using a (almost) nice DSL we can configure the router. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Routes
@Inject
public Routes(NinjaProperties ninjaProperties)
init
public void init(Router router)
- Using a (almost) nice DSL we can configure the router.
The second argument NinjaModuleDemoRouter contains all routes of a
submodule. By simply injecting it we activate the routes.
- Specified by:
init
in interface ApplicationRoutes
- Parameters:
router
- The default router of this application
Copyright © 2013. All Rights Reserved.