Package jeeves.interfaces

Examples of jeeves.interfaces.ApplicationHandler


      info("Found handler : " +className);

      Class<?> c = Class.forName(className);

      ApplicationHandler h = (ApplicationHandler) c.newInstance();

      ServiceContext srvContext = _serviceMan.createServiceContext("AppHandler", _applicationContext);
      srvContext.setLanguage(_defaultLang);
      srvContext.setLogger(_appHandLogger);
      srvContext.setServlet(servlet);
      srvContext.setAsThreadLocal();

      try {
        info ("--- Starting handler --------------------------------------");

        Object context = h.start(handler, srvContext);

        _appHandlers.add(h);
        _serviceMan.registerContext(h.getContextName(), context);
                _monitorManager.initMonitorsForApp(srvContext);

        info("--- Handler started ---------------------------------------");
      } catch (Exception e) {
                Map<String, String> errors = new HashMap<String, String>();
View Full Code Here

TOP

Related Classes of jeeves.interfaces.ApplicationHandler

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.