public class StoreConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INDEXES |
static java.lang.String |
SOUP_NAME |
static java.lang.String |
SOUPS |
Constructor and Description |
---|
StoreConfig(Context ctx,
int resourceId)
Constructor for config stored in resource file
|
StoreConfig(Context ctx,
java.lang.String assetPath)
Constructor for config stored in asset file
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasSoups()
Return true if soups are defined in config
|
void |
registerSoups(SmartStore store)
Register the soup from the config in the given store
NB: only feedback is through the logs - the config is static so getting it right is something the developer should do while writing the app
|
public static final java.lang.String SOUPS
public static final java.lang.String SOUP_NAME
public static final java.lang.String INDEXES
public StoreConfig(Context ctx, int resourceId)
ctx
- Context.resourceId
- Id of resource file.public StoreConfig(Context ctx, java.lang.String assetPath)
ctx
- Context.assetPath
- Path of assets file.public boolean hasSoups()
public void registerSoups(SmartStore store)
store
-