com.stackmob.sdkapi
Class ConfigVarService

java.lang.Object
  extended by com.stackmob.sdkapi.ConfigVarService

public abstract class ConfigVarService
extends Object

ConfigVarService allows you to access key-value pairs specific to this app.


Constructor Summary
ConfigVarService()
           
 
Method Summary
abstract  String get(String key)
          Get the value for the given key
abstract  String get(String key, String name)
          Get the value for the given key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigVarService

public ConfigVarService()
Method Detail

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 lookup
name - 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.