Package org.togglz.core.repository.file
Class FileBasedStateRepository
java.lang.Object
org.togglz.core.repository.property.PropertyBasedStateRepository
org.togglz.core.repository.file.FileBasedStateRepository
- All Implemented Interfaces:
StateRepository
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.
- Author:
- Christian Kaltepoth
-
Constructor Summary
ConstructorsConstructorDescriptionFileBasedStateRepository(File file) Constructor forFileBasedStateRepository.FileBasedStateRepository(File file, int minCheckInterval) Constructor forFileBasedStateRepository. -
Method Summary
Methods inherited from class org.togglz.core.repository.property.PropertyBasedStateRepository
getFeatureState, setFeatureState
-
Constructor Details
-
FileBasedStateRepository
Constructor forFileBasedStateRepository.- Parameters:
file- AFilerepresenting the Java properties file to use.
-
FileBasedStateRepository
Constructor forFileBasedStateRepository.- Parameters:
file- AFilerepresenting the Java properties file to use.minCheckInterval- the minimum amount of time in milliseconds to wait between checks of the file's modification date.
-