Skip to content

Commit 14bb4a5

Browse files
committed
- Added new get() method to the Config class
git-svn-id: svn://192.168.0.80/JavaXT/javaxt-express@1397 2c7b0aa6-e0b2-3c4e-bb4a-8b65b6c465ff
1 parent c0898bd commit 14bb4a5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/javaxt/express/Config.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ public JSONValue get(String key){
4646
}
4747

4848

49+
//**************************************************************************
50+
//** get
51+
//**************************************************************************
52+
/** Returns a nested value associated with the given keys
53+
*/
54+
public JSONValue get(String... path){
55+
synchronized(config){
56+
return config.get(0).get(path);
57+
}
58+
}
59+
60+
4961
//**************************************************************************
5062
//** set
5163
//**************************************************************************

0 commit comments

Comments
 (0)