| 
              
                 JavaXT 
              
              
              
             | 
          |
              Config ClassProvides thread-safe methods used to get and set application variables. 
Constructors  Config(  )
 Public Methodsinit( JSONObject json ) returns void Used to initialize the config with a given JSON document. This will replace any previously assigned config values. get( String... path ) returns JSONValue Returns a nested value associated with the given keys getDatabase(  ) returns javaxt.sql.Database Returns a Database assigned to a "database" key. setDatabase( javaxt.sql.Database database ) returns void Used to assign a Database to a "database" key. Static MethodsgetDatabase( JSONValue val ) returns javaxt.sql.Database Used to parse database connection information found in a given JSONValue and returns a Database object. getDatabase( JSONObject json ) returns javaxt.sql.Database Used to parse database connection information found in a given JSONObject and returns a Database object. Example:
 
    {
        "driver": "PostgreSQL",
        "host": "localhost:5432",
        "name": "test",
        "username": "postgres",
        "password": "xxxxxxxx",
        "maxConnections": 35
    }     | 
          |