summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/contrib/samples/learning-more/binding-comet/single-response-webapp/src/main/java/org/apache/tuscany/sca/sample/comet/CountryServiceImpl.java
blob: 084224591388fa826d6bb45f0dd4bc1976ce8e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package org.apache.tuscany.sca.sample.comet;

import java.util.List;

import org.oasisopen.sca.annotation.Reference;
import org.oasisopen.sca.annotation.Service;

@Service(CountryService.class)
public class CountryServiceImpl implements CountryService {

	@Reference
	protected CountryRepository repository;

	@Override
	public List<Country> getCountriesStartingWith(String text) {
		return repository.getStartingWith(text);
	}
}