|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bandana.DefaultBandanaManager
public class DefaultBandanaManager
Constructor Summary | |
---|---|
DefaultBandanaManager(BandanaPersister persister)
|
Method Summary | |
---|---|
String |
exportValues(BandanaContext context)
Get all the values stored in bandana for this 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 |
importValues(BandanaContext context,
String xmlValues)
Replace all the values stored in bandana for this context with values read from the XML string supplied, which is guaranteed to have been produced by exportValues(). |
void |
init()
Initialise the bandana manager. |
void |
setValue(BandanaContext context,
String key,
Object value)
Set a configuration object with the given context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultBandanaManager(BandanaPersister persister)
Method Detail |
---|
public void init()
BandanaManager
init
in interface BandanaManager
public Object getValue(BandanaContext context, String key)
BandanaManager
getValue
in interface BandanaManager
context
- The context to start looking inkey
- The key of the BandanaConfigurationObject object
public Object getValue(BandanaContext context, String key, boolean lookup)
BandanaManager
getValue
in interface BandanaManager
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 found
public String exportValues(BandanaContext context)
BandanaManager
exportValues
in interface BandanaManager
public void importValues(BandanaContext context, String xmlValues)
BandanaManager
importValues
in interface BandanaManager
public void setValue(BandanaContext context, String key, Object value)
BandanaManager
setValue
in interface BandanaManager
context
- The context to store this value inkey
- The key of the objectvalue
- The value to be stored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |