Interface BackingPropertySetManager

All Known Subinterfaces:
DbBackedPropertySetManager
All Known Implementing Classes:
DbBackedCachedPropertySetManager, DbBackedNotCachedPropertySetManager, MemorySwitchToDatabaseBackedPropertiesManager

@PublicApi public interface BackingPropertySetManager
The PropertySet that backs the PropertiesSet needs to be Switchable - to allow the container to manage this switching via ComponentAdapters we need an interface
Since:
v4.4
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Supplier<? extends com.opensymphony.module.propertyset.PropertySet>
     
    void
    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
    If the backing property set supports switching to different backing storage, then switch - otherwise noop For now the switch is one way
  • Method Details

    • getManager

      @Internal @Nonnull Supplier<ApplicationPropertiesManager> getManager()
      Returns:
      the Supplier that references the underlying application properties manager
      Since:
      v9.15
    • getPropertySetSupplier

      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