org.dxc.api
Class DxcConfig

Object
  extended by org.dxc.api.DxcConfig

public class DxcConfig
extends Object

Access DXC configuration. Reads keys and values stored in the DXC config file.


Method Summary
 String get(String key)
          Get the value of a key.
static DxcConfig getInstance()
          Loads DXC configuration and returns an instance of DxcConfig.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DxcConfig getInstance()
                             throws Exception
Loads DXC configuration and returns an instance of DxcConfig.

Throws:
Exception

get

public String get(String key)
           throws Exception
Get the value of a key.

Parameters:
key - key to return value of.
Returns:
value pointed to by key
Throws:
Exception - if key not found.