01: package org.getahead.dwrdemo.gidemo.bus;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05:
06: /**
07: * A demo business service
08: */
09: public class Countries {
10: /**
11: * Accessor for the current list of countries
12: */
13: public List<Country> getCountries() {
14: return countries;
15: }
16:
17: /**
18: * Internal store for the current list of countries with defaults.
19: */
20: private List<Country> countries = new ArrayList<Country>();
21: {
22: countries.add(new Country("US", "United States"));
23: countries.add(new Country("UK", "United Kingdom"));
24: countries.add(new Country("SE", "Sweden"));
25: countries.add(new Country("DE", "Germany"));
26: countries.add(new Country("FR", "France"));
27: countries.add(new Country("ES", "Spain"));
28: }
29: }
|