com.atlassian.jira.config.properties
Interface BackingPropertySetManager

All Known Implementing Classes:
DbBackedPropertiesManager, MemorySwitchToDatabaseBackedPropertiesManager

@PublicApi
public interface BackingPropertySetManager

The PropertySet that backs the PropertiesSet needs to be Switchable - to allow the PicoContainer to manage this switching via ComponentAdapters we need an interface

Since:
v4.4

Method Summary
 com.atlassian.util.concurrent.Supplier<? extends com.opensymphony.module.propertyset.PropertySet> getPropertySetSupplier()
           
 void refresh()
          refresh the underlying property set - this can also cause properties to be lost if the PropertySet has not been written to a backing store
 void switchBackingStore()
          If the backing property set supports switching to different backing storage, then switch - otherwise noop For now the switch is one way
 

Method Detail

getPropertySetSupplier

com.atlassian.util.concurrent.Supplier<? extends com.opensymphony.module.propertyset.PropertySet> getPropertySetSupplier()
Returns:
the Supplier that references the underlying property set

refresh

void refresh()
refresh the underlying property set - this can also cause properties to be lost if the PropertySet has not been written to a backing store


switchBackingStore

void switchBackingStore()
If the backing property set supports switching to different backing storage, then switch - otherwise noop For now the switch is one way



Copyright © 2002-2013 Atlassian. All Rights Reserved.