/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/provider/ProviderFactory.java
ViewVC logotype

Contents of /android/TrainInfo/src/dk/thoerup/traininfo/provider/ProviderFactory.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 294 - (show annotations) (download)
Tue Sep 1 20:28:55 2009 UTC (14 years, 8 months ago) by torben
File size: 607 byte(s)
Some work on new xmlStationProvider
1 package dk.thoerup.traininfo.provider;
2
3
4 public class ProviderFactory {
5 private static DepartureProvider departureProvider = null;
6 private static StationProvider stationProvider = null;
7
8 public static DepartureProvider getDepartureProvider() {
9 if (departureProvider == null) {
10 //provider = new DebugProvider();
11 departureProvider = new XmlDepartureProvider();
12 }
13
14 return departureProvider;
15 }
16
17 public static StationProvider getStationProvider() {
18 if (stationProvider == null) {
19 stationProvider = new XmlStationProvider();
20 }
21
22 return stationProvider;
23 }
24 }

  ViewVC Help
Powered by ViewVC 1.1.20