Codota Logo
SystemPropertyParser
Code IndexAdd Codota to your IDE (free)

How to use
SystemPropertyParser
in
org.chorusbdd.chorus.config

Best Java code snippets using org.chorusbdd.chorus.config.SystemPropertyParser (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: Chorus-bdd/Chorus

/**
 * Add to the provided propertyMap any properties available from this source
 *
 * Where the map already contains property values under a given key, extra property values should be
 * appended to the List
 * @return propertyMap, with parsed properties added
 */
public Map<ConfigurationProperty, List<String>> parseProperties(Map<ConfigurationProperty, List<String>> propertyMap, String... args) {
  for ( ConfigurationProperty p : getProperties()) {
    String value = System.getProperty(p.getSystemProperty());
    if ( value != null ) {
      addValues(propertyMap, p, value);
    }
  }
  return propertyMap;
}
origin: Chorus-bdd/Chorus

private void addValues(Map<ConfigurationProperty, List<String>> propertyMap, ConfigurationProperty property, String value) {
  StringTokenizer st = new StringTokenizer(value, " ");
  List<String> tokens = getOrCreatePropertyList(propertyMap, property);
  while(st.hasMoreElements()) {
    tokens.add(st.nextToken());
  }
}
origin: Chorus-bdd/Chorus

/**
 * Create a configuration using process arguments, System Properties and defaults
 */
public ConfigReader(List<ConfigurationProperty> properties, String[] args) {
  this.properties = properties;
  this.args = args;
  //where a property is in PropertySourceMode.OVERRIDE the ordering of sources here is important
  //sys props are last since it is useful to be able to use a sys prop to override command line
  //parameters for test suites which run as part of a component build which is checked in to source control -
  //otherwise it is necessary to commit changes to files to achieve something simple like increasing logging
  //to debug level. Continuous integration tools such as team city let you set a sys prop easily to do this.
  propertySources = new ConfigSource[] {
    new DefaultsConfigSource(properties),
    new CommandLineParser(properties),
    new SystemPropertyParser(properties)
  };
}
org.chorusbdd.chorus.configSystemPropertyParser

Javadoc

Created with IntelliJ IDEA. User: Nick E Date: 12/06/12 Time: 10:04 To change this template use File | Settings | File Templates.

Most used methods

  • <init>
  • addValues
  • getOrCreatePropertyList
  • getProperties

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now