com.stackmob.sdkapi
Class ConfigVarService
java.lang.Object
com.stackmob.sdkapi.ConfigVarService
public abstract class ConfigVarService
- extends Object
ConfigVarService allows you to access key-value pairs specific to this app.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigVarService
public ConfigVarService()
get
public abstract String get(String key)
throws ConfigVarServiceException
- Get the value for the given key
- Parameters:
key - the key to lookup
- Returns:
- the value associated with that key or null
- Throws:
ConfigVarServiceException - if the config vars can't be reached
get
public abstract String get(String key,
String name)
throws ConfigVarServiceException
- Get the value for the given key
- Parameters:
key - the key to lookupname - where to load config vars from
- Returns:
- the value associated with that key or null
- Throws:
ConfigVarServiceException - if the config vars can't be reached
Copyright © 2012 StackMob. All Rights Reserved.