Package com.subgraph.orchid.TorConfig

Examples of com.subgraph.orchid.TorConfig.ConfigVar


    }
  }
 
  void invokeSetMethod(Method method, Object[] args) {
    final String name = getVariableNameForMethod(method);
    final ConfigVar annotation = getAnnotationForVariable(name);
    if(annotation != null && annotation.type() == ConfigVarType.INTERVAL) {
      setIntervalValue(name, args);
    } else {
      configValues.put(name, args[0]);
    }
  }
View Full Code Here


    }
    return parser.parseValue(defaultValue, type);
  }
 
  private String getDefaultValueString(String varName) {
    final ConfigVar var = getAnnotationForVariable(varName);
    if(var == null) {
      return null;
    } else {
      return var.defaultValue();
    }
  }
View Full Code Here

  private ConfigVarType getVariableType(String varName) {
    if("Bridge".equals(varName)) {
      return ConfigVarType.BRIDGE_LINE;
    }
   
    final ConfigVar var = getAnnotationForVariable(varName);
    if(var == null) {
      return null;
    } else {
      return var.type();
    }
  }
View Full Code Here

TOP

Related Classes of com.subgraph.orchid.TorConfig.ConfigVar

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.