ninja
Class NinjaImpl

java.lang.Object
  extended by ninja.NinjaImpl
All Implemented Interfaces:
Ninja

public class NinjaImpl
extends Object
implements Ninja

Main implementation of the ninja framework. Roughly works in the following order: - Gets a request - Searches for a matching route - Applies filters - Executes matching controller - Returns result

Author:
ra

Constructor Summary
NinjaImpl(LifecycleService lifecycleService, Router router, ResultHandler resultHandler, String pathToViewNotFound)
           
 
Method Summary
 void invoke(ContextImpl context)
          I do all the main work.
 void shutdown()
          Stop the Ninja Framework
 void start()
          Start the Ninja Framework
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NinjaImpl

@Inject
public NinjaImpl(LifecycleService lifecycleService,
                        Router router,
                        ResultHandler resultHandler,
                        String pathToViewNotFound)
Method Detail

invoke

public void invoke(ContextImpl context)
I do all the main work.

Specified by:
invoke in interface Ninja
Parameters:
context - context

start

public void start()
Description copied from interface: Ninja
Start the Ninja Framework

Specified by:
start in interface Ninja

shutdown

public void shutdown()
Description copied from interface: Ninja
Stop the Ninja Framework

Specified by:
shutdown in interface Ninja


Copyright © 2012. All Rights Reserved.