public class FileBasedStateRepository extends PropertyBasedStateRepository
A PropertyBasedStateRepository that stores the state of features using a standard Java properties file.
This class is able to detect changes made to the properties file and will automatically reload it in this
case.
| Constructor and Description |
|---|
FileBasedStateRepository(File file)
Constructor for
FileBasedStateRepository. |
FileBasedStateRepository(File file,
int minCheckInterval)
Constructor for
FileBasedStateRepository. |
getFeatureState, setFeatureStatepublic FileBasedStateRepository(File file)
FileBasedStateRepository.file - A File representing the Java properties file to use.public FileBasedStateRepository(File file, int minCheckInterval)
FileBasedStateRepository.file - A File representing the Java properties file to use.minCheckInterval - the minimum amount of time in milliseconds to wait between checks of the file's modification
date.Copyright © 2018. All Rights Reserved.