Module org.entur.netex.gtfs.export
Package org.entur.netex.gtfs.export.stop
Class DefaultStopAreaRepositoryFactory
java.lang.Object
org.entur.netex.gtfs.export.stop.DefaultStopAreaRepositoryFactory
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn an initialized instance of a stop area repository.voidrefreshStopAreaRepository(InputStream stopDataset) Refresh the cached stop area.protected voidsetStopAreaRepository(StopAreaRepository stopAreaRepository)
-
Constructor Details
-
DefaultStopAreaRepositoryFactory
public DefaultStopAreaRepositoryFactory()
-
-
Method Details
-
getStopAreaRepository
Description copied from interface:StopAreaRepositoryFactoryReturn 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:
getStopAreaRepositoryin interfaceStopAreaRepositoryFactory- Returns:
- an initialized instance of a stop area repository.
-
setStopAreaRepository
-
refreshStopAreaRepository
Refresh the cached stop area.- Specified by:
refreshStopAreaRepositoryin interfaceStopAreaRepositoryFactory- Parameters:
stopDataset- an input stream on a NeTEX dataset archive.
-