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
public class FileBasedStateRepository extends PropertyBasedStateRepository
A
PropertyBasedStateRepositorythat 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
Constructors Constructor Description FileBasedStateRepository(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 Detail
-
FileBasedStateRepository
public FileBasedStateRepository(File file)
Constructor forFileBasedStateRepository.- Parameters:
file- AFilerepresenting the Java properties file to use.
-
FileBasedStateRepository
public FileBasedStateRepository(File file, int minCheckInterval)
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.
-
-