Package org.nutz.mvc

Examples of org.nutz.mvc.NutConfigException


      Class<?> mainModule = null;
      if (!Strings.isBlank(name))
        mainModule = Lang.loadClass(name);
     
      if (null == mainModule) {
        throw new NutConfigException("You need declare modules parameter in your context configuration file!");
      } else if (log.isDebugEnabled())
        log.debugf("MainModule: <%s>", mainModule.getName());
      return mainModule;
    }
    catch (Exception e) {
      throw new NutConfigException(e);
    }
  }
View Full Code Here


            Class<?> mainModule = null;
            if (!Strings.isBlank(name))
                mainModule = Lang.loadClass(name);
           
            if (null == mainModule) {
                throw new NutConfigException("You need declare modules parameter in your context configuration file!");
            } else if (log.isDebugEnabled())
                log.debugf("MainModule: <%s>", mainModule.getName());
            return mainModule;
        }
        catch (Exception e) {
            throw new NutConfigException(e);
        }
    }
View Full Code Here

    public Class<?> getMainModule() {
        String name = Strings.trim(getInitParameter("modules"));
        try {
            Class<?> mainModule = null;
            if (Strings.isBlank(name))
              throw new NutConfigException("You need declare 'modules' parameter in your context configuration file or web.xml ! Only found -> " + getInitParameterNames());
            mainModule = Lang.loadClass(name);
            log.debugf("MainModule: <%s>", mainModule.getName());
            return mainModule;
        }
        catch (NutConfigException e) {
      throw e;
    }
        catch (Exception e) {
            throw new NutConfigException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.nutz.mvc.NutConfigException

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.