Package ninja

Class Bootstrap

  • Direct Known Subclasses:

    public class Bootstrap
    extends Object
    Bootstrap for a Ninja application. Assists with initializing logging, configuring Guice injector, applying user-defined Guice modules/bindings, creates the injector, and compiles the routes. Subclasses will likely want to provide an inherited configure() method that adds modules specific to the subclassed Bootstrap. See ninja-servlet and NinjaServletContext for an example of a subclass.
    • Method Detail

      • boot

        public void boot()
      • shutdown

        public void shutdown()
      • getInjector

        public getInjector()
      • addModule

        public void addModule​( module)