Class DefaultStopAreaRepositoryFactory

java.lang.Object
org.entur.netex.gtfs.export.stop.DefaultStopAreaRepositoryFactory
All Implemented Interfaces:
StopAreaRepositoryFactory

public class DefaultStopAreaRepositoryFactory extends Object implements StopAreaRepositoryFactory
A stop area repository factory that builds stop area repositories from a NeTEx dataset archive. The dataset can be refreshed at runtime by calling refreshStopAreaRepository(InputStream)
  • Constructor Details

    • DefaultStopAreaRepositoryFactory

      public DefaultStopAreaRepositoryFactory()
  • Method Details

    • getStopAreaRepository

      public StopAreaRepository getStopAreaRepository()
      Description copied from interface: StopAreaRepositoryFactory
      Return an initialized instance of a stop area repository. Multiple calls to the method may return different repositories if the underlying implementation allows for refreshing the dataset at runtime.
      Specified by:
      getStopAreaRepository in interface StopAreaRepositoryFactory
      Returns:
      an initialized instance of a stop area repository.
    • setStopAreaRepository

      protected void setStopAreaRepository(StopAreaRepository stopAreaRepository)
    • refreshStopAreaRepository

      public void refreshStopAreaRepository(InputStream stopDataset)
      Refresh the cached stop area.
      Specified by:
      refreshStopAreaRepository in interface StopAreaRepositoryFactory
      Parameters:
      stopDataset - an input stream on a NeTEX dataset archive.