Package org.nutz.mvc.annotation

Examples of org.nutz.mvc.annotation.SetupBy


      log.debugf("@ChainBy(%s)", maker.getClass().getName());
    return maker;
  }

  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


            log.debugf("@ChainBy(%s)", maker.getClass().getName());
        return maker;
    }

    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

            log.debugf("@ChainBy(%s)", maker.getClass().getName());
        return maker;
    }

    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

TOP

Related Classes of org.nutz.mvc.annotation.SetupBy

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.