Package com.firefly.mvc.web

Examples of com.firefly.mvc.web.AnnotationWebContext


      scNotFound(request, response);
    }
  }

  public HttpServletDispatcherController init(String initParam) {
    webContext = new AnnotationWebContext(initParam);
    return this;
  }
View Full Code Here


    }
  }

  public HttpServletDispatcherController init(String initParam,
      ServletContext servletContext) {
    webContext = new AnnotationWebContext(initParam, servletContext);
    return this;
  }
View Full Code Here

    log.info("context path [{}]", config.getContextPath());
    log.info("servlet path [{}]", config.getServletPath());
    log.info("http handler num [{}]", config.getHandlerSize());

    long start = System.currentTimeMillis();
    AnnotationWebContext context = new AnnotationWebContext(
        config.getConfigFileName(), config.getServerHome());
    HttpServletDispatcherController controller = HttpServletDispatcherController
        .getInstance().init(context);

    config.setEncoding(context.getEncoding());

    Server server = new TcpServer(new HttpDecoder(config),
        new HttpEncoder(), new HttpHandler(controller, config));
    server.start(config.getHost(), config.getPort());
    long end = System.currentTimeMillis();
View Full Code Here

  @Override
  public void init() {
    String initParam = this.getInitParameter(INIT_PARAM);
    log.info("initParam [{}]", initParam);
    long start = System.currentTimeMillis();
    dispatcherController = new HttpServletDispatcherController(new AnnotationWebContext(initParam, getServletContext()));
    long end = System.currentTimeMillis();
    log.info("firefly startup in {} ms", (end - start));
  }
View Full Code Here

TOP

Related Classes of com.firefly.mvc.web.AnnotationWebContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.