Package org.raist.config

Examples of org.raist.config.Config$KVLong


    public void derive(Builder builder) {

      for(int i = path.size() - 1; i >= 0; i--) {

        String node = path.get(i);
        Config c = manager.getConfig(node);
        c.derive(builder);
      }
    }
View Full Code Here


  public Config getConfig(String domain) {
   
    if( domain == null )
      throw new NullPointerException("specified domain is null.");
   
    Config result = configs.get(domain);
    return result == null ? EmptyConfig.INSTANCE : result;
  }
View Full Code Here

    if( domain == null )
      throw new NullPointerException("cannot fire update event for null domain.");
   
    synchronized (this) {
     
      Config config = getConfig(domain);
     
      for(Configurable configurable : getDomainConfigurables(domain))
        configurable.updateConfig(config);
    }
  }
View Full Code Here

    @Override
    public boolean hasValue(String key) {

      for(String node : path) {

        Config c = manager.getConfig(node);
        if( c.hasValue(key) )
          return true;
      }
      return false;
    }
View Full Code Here

    @Override
    public String getString(String key, String val) {

      for(String node : path) {

        Config c = manager.getConfig(node);
        if( c.hasValue(key) )
          return c.getString(key, val);
      }
      return val;
    }
View Full Code Here

    @Override
    public boolean getBoolean(String key, boolean val) {

      for(String node : path) {

        Config c = manager.getConfig(node);
        if( c.hasValue(key) )
          return c.getBoolean(key, val);
      }
      return val;
    }
View Full Code Here

    @Override
    public char getChar(String key, char val) {

      for(String node : path) {

        Config c = manager.getConfig(node);
        if( c.hasValue(key) )
          return c.getChar(key, val);
      }
      return val;
    }
View Full Code Here

    @Override
    public int getInt(String key, int val) {

      for(String node : path) {

        Config c = manager.getConfig(node);
        if( c.hasValue(key) )
          return c.getInt(key, val);
      }
      return val;
    }
View Full Code Here

TOP

Related Classes of org.raist.config.Config$KVLong

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.