public interface BandanaManager
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getContextEntries(BandanaContext context)
Gets all the entries under the given context.
|
Iterable<String> |
getKeys(BandanaContext context)
Gets all the keys for entries under the given context.
|
Object |
getValue(BandanaContext context,
String key)
Get the configuration object, starting with the given context and looking upwards.
|
Object |
getValue(BandanaContext context,
String key,
boolean lookUp)
Get the configuration object, starting with the given context
|
void |
init()
Initialise the bandana manager.
|
void |
removeValue(BandanaContext context,
String key)
Remove the configuration object, using the given context.
|
void |
setValue(BandanaContext context,
String key,
Object value)
Set a configuration object with the given context.
|
void init()
void setValue(BandanaContext context, String key, Object value)
context - The context to store this value inkey - The key of the objectvalue - The value to be storedObject getValue(BandanaContext context, String key)
context - The context to start looking inkey - The key of the BandanaConfigurationObject objectObject getValue(BandanaContext context, String key, boolean lookUp)
context - The context to start looking inkey - The key of the BandanaConfigurationObject objectlookUp - Whether or not to look up the context hierarchy if no context is foundIterable<String> getKeys(BandanaContext context)
context - the context for which to find keysvoid removeValue(BandanaContext context, String key)
context - the context to look inkey - the key of the configuration objectMap<String,Object> getContextEntries(BandanaContext context)
context - the context to look inCopyright © 2003–2017 Atlassian. All rights reserved.