cz.cuni.amis.utils.configuration.providers
Class JVMOptionsProvider

Package class diagram package JVMOptionsProvider
java.lang.Object
  extended by cz.cuni.amis.utils.configuration.PropertyProvider
      extended by cz.cuni.amis.utils.configuration.providers.JVMOptionsProvider
All Implemented Interfaces:
Comparable<PropertyProvider>

public class JVMOptionsProvider
extends PropertyProvider

Reads property from -D options passed to the JVM.

Author:
ik

Constructor Summary
JVMOptionsProvider()
           
 
Method Summary
 int getPriority()
          Priority of this provider.
 String getProperty(String key)
          Searches for given property key.
 String toString()
           
 
Methods inherited from class cz.cuni.amis.utils.configuration.PropertyProvider
compareTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JVMOptionsProvider

public JVMOptionsProvider()
Method Detail

getPriority

public int getPriority()
Description copied from class: PropertyProvider
Priority of this provider. It will be asked for property value before all providers with lower priority.

Specified by:
getPriority in class PropertyProvider
Returns:

getProperty

public String getProperty(String key)
Description copied from class: PropertyProvider
Searches for given property key.

Specified by:
getProperty in class PropertyProvider
Returns:
null if the property wasn't found

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.