|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.config.properties.PropertiesManager
public class PropertiesManager
This class has undergone significant change in 4.4 to support the new in line database functionality. The 1st page of setup may have no database - if that is the case you need to store properties in memory When the database is loaded the properties from page 1 (primarily language) are cloned to a PropertySet that is backed by the DB. From that point on any new PropertiesManager instances injected by Pico will be backed by database property sets. using a ComponentAdaptor. The onDataBaseConfigured method is the entry point to indicate the database setup is complete.
| Constructor Summary | |
|---|---|
PropertiesManager(BackingPropertySetManager propertySetManager)
|
|
| Method Summary | |
|---|---|
com.opensymphony.module.propertyset.PropertySet |
getPropertySet()
|
com.atlassian.util.concurrent.Supplier<? extends com.opensymphony.module.propertyset.PropertySet> |
getPropertySetReference()
Get a reference for when you need to look at the properties for a longer period of time. |
void |
onDatabaseConfigured()
Called to indicate the database has been set up this causes the switch to a db-backed PropertySet |
void |
refresh()
Refresh the properties from the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesManager(BackingPropertySetManager propertySetManager)
| Method Detail |
|---|
public com.opensymphony.module.propertyset.PropertySet getPropertySet()
public com.atlassian.util.concurrent.Supplier<? extends com.opensymphony.module.propertyset.PropertySet> getPropertySetReference()
public void refresh()
public void onDatabaseConfigured()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||