conf
Class Routes

java.lang.Object
  extended by conf.Routes
All Implemented Interfaces:
ApplicationRoutes

public class Routes
extends Object
implements ApplicationRoutes


Constructor Summary
Routes()
           
 
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
 

Constructor Detail

Routes

public Routes()
Method Detail

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 © 2012. All Rights Reserved.