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 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 Details

    • FileBasedStateRepository

      public FileBasedStateRepository(File file)
      Constructor for FileBasedStateRepository.
      Parameters:
      file - A File representing the Java properties file to use.
    • FileBasedStateRepository

      public FileBasedStateRepository(File file, int minCheckInterval)
      Constructor for FileBasedStateRepository.
      Parameters:
      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.