Examples of MainHandler


Examples of com.alibaba.citrus.webx.handler.impl.MainHandler

            if (!productionMode) {
                // 从META-INF/webx.internal-request-handlers,不包含error handler和main handler
                internalHandlers = loadInternalHandlers(REQUEST_HANDLER_LOCATION);

                // 创建并初始化mainHandler
                mainHandler = new MainHandler();
                ((MainHandler) mainHandler).setName(EMPTY_STRING);
                autowireAndInitialize(mainHandler, components.getParentApplicationContext(), AUTOWIRE_NO, ERROR_PREFIX);
            }
        }
View Full Code Here

Examples of com.alibaba.citrus.webx.handler.impl.MainHandler

            if (!productionMode) {
                // 从META-INF/webx.internal-request-handlers,不包含error handler和main handler
                internalHandlers = loadInternalHandlers(REQUEST_HANDLER_LOCATION);

                // 创建并初始化mainHandler
                mainHandler = new MainHandler();
                ((MainHandler) mainHandler).setName(EMPTY_STRING);
                autowireAndInitialize(mainHandler, components.getParentApplicationContext(), AUTOWIRE_NO, ERROR_PREFIX);
            }
        }
View Full Code Here

Examples of com.alibaba.citrus.webx.handler.impl.MainHandler

            if (!productionMode) {
                // 从META-INF/webx.internal-request-handlers,不包含error handler和main handler
                internalHandlers = loadInternalHandlers(REQUEST_HANDLER_LOCATION);

                // 创建并初始化mainHandler
                mainHandler = new MainHandler();
                ((MainHandler) mainHandler).setName(EMPTY_STRING);
                autowireAndInitialize(mainHandler, components.getParentApplicationContext(), AUTOWIRE_NO, ERROR_PREFIX);
            }
        }
View Full Code Here

Examples of com.alibaba.citrus.webx.handler.impl.MainHandler

            if (!productionMode) {
                // ��META-INF/webx.internal-request-handlers��������error handler��main handler
                internalHandlers = loadInternalHandlers(REQUEST_HANDLER_LOCATION);

                // ��������ʼ��mainHandler
                mainHandler = new MainHandler();
                ((MainHandler) mainHandler).setName(EMPTY_STRING);
                autowireAndInitialize(mainHandler, components.getParentApplicationContext(), AUTOWIRE_NO, ERROR_PREFIX);
            }
        }
View Full Code Here

Examples of jnode.main.MainHandler

   */
  public GUIConfigurator(String configFile) {
    this.configFile = configFile;
    if (MainHandler.getCurrentInstance() == null) {
      try {
        new MainHandler(configFile);
      } catch (Exception e) {
        e.printStackTrace();
        new MainHandler(fillDefaultConfig());
      }
    }
    initialize();
  }
View Full Code Here

Examples of jnode.main.MainHandler

        }
        try {
          OutputStream os = new FileOutputStream(configFile);
          props.store(os, "GUIConfigurator process");
          os.close();
          new MainHandler(configFile);
        } catch (IOException ig) {

        }
      }
    });
    Button defButton = new Button("По-умолчанию");
    defButton.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {
        new MainHandler(fillDefaultConfig());
      }
    });

    configPanel.add(saveButton);
    configPanel.add(defButton);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.