View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   package cz.cuni.amis.utils.configuration.providers;
6   
7   import cz.cuni.amis.utils.configuration.PropertyProvider;
8   
9   /**
10   * Read property from system variable.
11   * @author ik
12   */
13  public class EnvironmentVariableProvider extends PropertyProvider {
14  
15      @Override
16      public int getPriority() {
17          return 10000;
18      }
19  
20      @Override
21      public String getProperty(String key) {
22          return System.getenv(key);
23      }
24  
25      @Override
26      public String toString() {
27          return "Environment variable provider";
28      }
29  }