Class DefaultBandanaManager

java.lang.Object
com.atlassian.bandana.DefaultBandanaManager
All Implemented Interfaces:
BandanaManager, BandanaManagerInternal

@Deprecated(forRemoval=true) public class DefaultBandanaManager extends Object implements BandanaManagerInternal
Deprecated, for removal: This API element is subject to removal in a future version.
since 9.3, for removal in 10.0. Consider a combination of the linked alternatives.
See Also:
  • Constructor Details

    • DefaultBandanaManager

      public DefaultBandanaManager(BandanaPersister persister)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getValue

      public Object getValue(BandanaContext context, String key, boolean lookup)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BandanaManager
      Get the configuration object, starting with the given context
      Specified by:
      getValue in interface BandanaManager
      Parameters:
      context - The context to start looking in
      key - The key of the BandanaConfigurationObject object
      lookup - Whether or not to look up the context hierarchy if no context is found
      Returns:
      Object object for this key, or null if none exists.
    • setValue

      public void setValue(BandanaContext context, String key, Object value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BandanaManagerInternal
      Set a configuration object with the given context.
      Specified by:
      setValue in interface BandanaManager
      Specified by:
      setValue in interface BandanaManagerInternal
      Parameters:
      context - The context to store this value in
      key - The key of the object
      value - The value to be stored
    • getKeys

      public Iterable<String> getKeys(BandanaContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BandanaManager
      Gets all the keys for entries under the given context. Will not look upwards to other contexts.
      Specified by:
      getKeys in interface BandanaManager
      Parameters:
      context - the context for which to find keys
      Returns:
      all keys for supplied context
    • removeValue

      public void removeValue(BandanaContext context, String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BandanaManagerInternal
      Remove the configuration object, using the given context. Will modify other contexts.
      Specified by:
      removeValue in interface BandanaManager
      Specified by:
      removeValue in interface BandanaManagerInternal
      Parameters:
      context - the context to look in
      key - the key of the configuration object