View Javadoc

1   
2   package cz.cuni.amis.utils.configuration.providers;
3   
4   import cz.cuni.amis.utils.configuration.PropertyProvider;
5   
6   /**
7    * Reads property from -D options passed to the JVM.
8    * @author ik
9    */
10  public class JVMOptionsProvider extends PropertyProvider {
11  
12      @Override
13      public int getPriority() {
14          return 9000;
15      }
16  
17      @Override
18      public String getProperty(String key) {
19          return System.getProperty(key);
20      }
21  
22      @Override
23      public String toString() {
24          return "JVM -D option provider";
25      }
26  
27  
28  }