Package de.odysseus.calyxo.base.conf

Examples of de.odysseus.calyxo.base.conf.ConfigException


  /**
   * Throws an exception.
   */
  public void setFinal(boolean ignored) throws ConfigException {
    throw new ConfigException("Attribute 'final' is not allowed inside 'validate'");
  }
View Full Code Here


   * @see de.odysseus.calyxo.base.conf.impl.ConfigImpl#_init()
   */
  protected void _init() throws ConfigException {
    super._init();
    if (!isDefined()) {
      throw new ConfigException("Property must have a value in '" + toInlineString() + "'");
    }
  }
View Full Code Here

    log.trace("init() start");

    module = context.getModuleContext();
    ParamConfig param = config.getParamConfig("config");
    if (param == null) {
      throw new ConfigException("Missing parameter 'config' in " + config.toInlineString());
    }
    service.init(module, param.getValue());

    Dispatcher dispatcher = new PanelsDispatcher(module);
    context.setDispatcher("panels", dispatcher);
View Full Code Here

  /**
   * Add panel element
   */
  public void add(PanelConfig value) throws ConfigException {
    if (panels.containsKey(value.getName())) {
      throw new ConfigException("Duplicate panel '" + value.getName() + "' in " + toInlineString());
    }
    panels.put(value.getName(), value);
  }
View Full Code Here

   * @throws ConfigException if settings are invalid
   */
  private Locale createLocale() throws ConfigException {
    if (language == null) {
      if (country != null || variant != null) {
        throw new ConfigException("Must not specify country or variant without language in '" + toInlineString() + "'");
      }
      return new Locale("", "");
    } else {
      if (country == null) {
        if (variant != null) {
          throw new ConfigException("Must not specify variant without country in '" + toInlineString() + "'");
        }
        return new Locale(language, "");
      } else {
        if (variant == null) {
          return new Locale(language, country)
View Full Code Here

  /**
   * Add panel element
   */
  public void add(PanelConfigImpl value) throws ConfigException {
    if (panels.containsKey(value.getName())) {
      throw new ConfigException("Duplicate panel '" + value.getName() + "' in " + toInlineString());
    }
    panels.put(value.getName(), value);
  }
View Full Code Here

  /**
   * Add param element
   */
  public void add(ParamConfigImpl value) throws ConfigException {
    if (params.containsKey(value.getName())) {
      throw new ConfigException("Duplicate param '" + value.getName() + "' in " + toInlineString());
    }
    params.put(value.getName(), value);
  }
View Full Code Here

  /**
   * Add list element
   */
  public void add(ListConfigImpl value) throws ConfigException {
    if (lists.containsKey(value.getName())) {
      throw new ConfigException("Duplicate list '" + value.getName() + "' in " + toInlineString());
    }
    lists.put(value.getName(), value);
  }
View Full Code Here

   * @throws ConfigException if settings are invalid
   */
  private Locale createLocale() throws ConfigException {
    if (language == null) {
      if (country != null || variant != null) {
        throw new ConfigException("Must not specify country or variant without language in '" + toInlineString() + "'");
      }
      return new Locale("", "");
    } else {
      if (country == null) {
        if (variant != null) {
          throw new ConfigException("Must not specify variant without country in '" + toInlineString() + "'");
        }
        return new Locale(language, "");
      } else {
        if (variant == null) {
          return new Locale(language, country)
View Full Code Here

  /**
   * Add form element.
   */
  public void add(FormConfigImpl value) throws ConfigException {
    if (formConfigs.containsKey(value.getName())) {
      throw new ConfigException("Duplicate form '" + value.getName() + "' in " + toInlineString());
    }
    formConfigs.put(value.getName(), value);
  }
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.base.conf.ConfigException

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.