public class JAXBConfigStorage extends AbstractConfigStorage
Modifier and Type | Field and Description |
---|---|
protected java.nio.file.Path |
file |
protected java.util.Map<java.lang.String,java.lang.Object> |
map |
blockSize, interval, loadJob, registry, saveJob, saveScheduled, strategy, unsavedChangesCounter
BLOCKWISE_SAVING, DESCRIPTION_KEY, DISPLAY_MODE, ENTRY_HIDDEN, ENTRY_LOCKED, ENTRY_MODIFIABLE, EXCLUSIVE, FILE_TYPE, FOLDER_TYPE, GROUP_VIRTUAL, HANDLER, IMMEDIATE_SAVING, INDENT, INLINE, ITEM_TYPE, MANUAL_SAVING, MAX_ITEM_COUNT, MAX_LENGTH, MAX_VALUE, MIN_ITEM_COUNT, MIN_VALUE, MODE_GRID, MODE_LIST, MODE_TABBED, MODE_TREE, MULTILINE, NAME_KEY, NOTE_KEY, OPTIONS, OPTIONS_KEYS, ORIENTATION, PATTERN, PATTERN_DESCRIPTION_KEY, PERIODIC_SAVING, PRECISION, RENDERER, SEPARATED
Constructor and Description |
---|
JAXBConfigStorage(java.nio.file.Path file) |
JAXBConfigStorage(java.nio.file.Path file,
int strategy) |
JAXBConfigStorage(java.lang.String path) |
JAXBConfigStorage(java.lang.String path,
int strategy) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue(java.lang.String path)
Returns the object currently being stored
for the given path.
|
protected void |
read() |
protected boolean |
setValue0(java.lang.String path,
java.lang.Object value) |
protected void |
write() |
commit, commitNow, getBlockSize, getInterval, hasUnsavedChanges, setBlockSize, setInterval, setRegistry, setStrategy, setValue, update, updateNow
protected java.nio.file.Path file
protected java.util.Map<java.lang.String,java.lang.Object> map
public JAXBConfigStorage(java.lang.String path, int strategy)
public JAXBConfigStorage(java.lang.String path)
public JAXBConfigStorage(java.nio.file.Path file)
public JAXBConfigStorage(java.nio.file.Path file, int strategy)
public java.lang.Object getValue(java.lang.String path)
ConfigStorage
Note that a storage is not meant to hold
every data within a ConfigRegistry
and
may therefore return null
for a lot
of paths.
Often only values that differ from the default values
are forwarded to a storage instance.
protected boolean setValue0(java.lang.String path, java.lang.Object value)
setValue0
in class AbstractConfigStorage
protected void read() throws java.lang.Exception
read
in class AbstractConfigStorage
java.lang.Exception
protected void write() throws java.lang.Exception
write
in class AbstractConfigStorage
java.lang.Exception