Examples of Setup


Examples of org.nutz.mvc.Setup

  private void evalSetup(NutConfig config, Class<?> mainModule) throws Exception {
    SetupBy sb = mainModule.getAnnotation(SetupBy.class);
    if (null != sb) {
      if (log.isInfoEnabled())
        log.info("Setup application...");
      Setup setup = Mirror.me(sb.value()).born();
      config.setAttributeIgnoreNull(Setup.class.getName(), setup);
      setup.init(config);
    }
  }
View Full Code Here

Examples of org.nutz.mvc.Setup

      log.infof("Nutz.Mvc[%s] is deposing ...", config.getAppName());
    Stopwatch sw = Stopwatch.begin();

    // Firstly, upload the user customized desctroy
    try {
      Setup setup = config.getAttributeAs(Setup.class, Setup.class.getName());
      if (null != setup)
        setup.destroy(config);
    }
    catch (Exception e) {
      throw new LoadingException(e);
    }
    // If the application has Ioc, depose it
View Full Code Here

Examples of org.nutz.mvc.Setup

    private void evalSetup(NutConfig config, Class<?> mainModule) throws Exception {
        SetupBy sb = mainModule.getAnnotation(SetupBy.class);
        if (null != sb) {
            if (log.isInfoEnabled())
                log.info("Setup application...");
            Setup setup = Loadings.evalObj(config, sb.value(), sb.args());
            config.setAttributeIgnoreNull(Setup.class.getName(), setup);
            setup.init(config);
        }
    }
View Full Code Here

Examples of org.nutz.mvc.Setup

            log.infof("Nutz.Mvc[%s] is deposing ...", config.getAppName());
        Stopwatch sw = Stopwatch.begin();

        // Firstly, upload the user customized desctroy
        try {
            Setup setup = config.getAttributeAs(Setup.class, Setup.class.getName());
            if (null != setup)
                setup.destroy(config);
        }
        catch (Exception e) {
            throw new LoadingException(e);
        }
        finally {
View Full Code Here

Examples of org.nutz.mvc.Setup

    protected void evalSetup(NutConfig config, Class<?> mainModule) throws Exception {
        SetupBy sb = mainModule.getAnnotation(SetupBy.class);
        if (null != sb) {
            if (log.isInfoEnabled())
                log.info("Setup application...");
            Setup setup = Loadings.evalObj(config, sb.value(), sb.args());
            config.setAttributeIgnoreNull(Setup.class.getName(), setup);
            setup.init(config);
        }
    }
View Full Code Here

Examples of org.nutz.mvc.Setup

            log.infof("Nutz.Mvc[%s] is deposing ...", config.getAppName());
        Stopwatch sw = Stopwatch.begin();

        // Firstly, upload the user customized desctroy
        try {
            Setup setup = config.getAttributeAs(Setup.class, Setup.class.getName());
            if (null != setup)
                setup.destroy(config);
        }
        catch (Exception e) {
            throw new LoadingException(e);
        }
        finally {
View Full Code Here

Examples of org.ozoneDB.Setup

     * if one doesn't exists, create it.
     */
    private void initLocalDB() throws Exception {
        fLocalTestDir.mkdirs();
        File dbDir = File.createTempFile("OZT", null, fLocalTestDir);
        Setup defaults = new Setup(null);
        defaults.addProperties(System.getProperties(), "ozoneDB.");
        Install.createDB(dbDir.getPath() + ".dir", defaults, new PrintWriter(System.out, true));

        initDB("ozonedb:local://" + dbDir.getPath() + ".dir");
    }
View Full Code Here

Examples of org.rhq.enterprise.communications.util.prefs.Setup

     * @param prefs the agent's configuration preferences
     * @param in    the input that the agent uses to get user input
     * @param out   the output stream that the agent uses to show messages to the user
     */
    public void performBasicSetup(Preferences prefs, PromptInput in, PrintWriter out) {
        Setup setup = new Setup(prefs, MSG.getMsg(AgentI18NResourceKeys.SETUP_INTRO), createBasicSetupInstructions(),
            in, out);

        if (setup.setup()) {
            prefs.putBoolean(AgentConfigurationConstants.CONFIG_SETUP, true);
        }

        return;
    }
View Full Code Here

Examples of org.rhq.enterprise.communications.util.prefs.Setup

     * @param prefs the agent's configuration preferences
     * @param in    the input stream that the agent uses to get user input
     * @param out   the output stream that the agent uses to show messages to the user
     */
    public void performAdvancedSetup(Preferences prefs, PromptInput in, PrintWriter out) {
        Setup setup = new Setup(prefs, MSG.getMsg(AgentI18NResourceKeys.SETUP_INTRO_ADVANCED),
            createAdvancedSetupInstructions(), in, out);

        if (setup.setup()) {
            prefs.putBoolean(AgentConfigurationConstants.CONFIG_SETUP, true);
        }

        return;
    }
View Full Code Here

Examples of org.rhq.enterprise.communications.util.prefs.Setup

     * @param prefs the agent's configuration preferences
     * @param in    the input that the agent uses to get user input
     * @param out   the output stream that the agent uses to show messages to the user
     */
    public void performAllSetup(Preferences prefs, PromptInput in, PrintWriter out) {
        Setup setup = new Setup(prefs, MSG.getMsg(AgentI18NResourceKeys.SETUP_INTRO_ALL), createAllSetupInstructions(),
            in, out);

        if (setup.setup()) {
            prefs.putBoolean(AgentConfigurationConstants.CONFIG_SETUP, true);
        }

        return;
    }
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.