2019-06-05 01:44:57 +03:00
|
|
|
package com.baeldung.autoservice;
|
|
|
|
|
2019-06-05 02:00:53 +03:00
|
|
|
import com.google.auto.service.AutoService;
|
|
|
|
|
2019-06-05 01:44:57 +03:00
|
|
|
import java.util.Locale;
|
|
|
|
|
|
|
|
@AutoService(TranslateService.class)
|
|
|
|
public class GoogleTranslateServiceProvider implements TranslateService {
|
|
|
|
|
|
|
|
public String translate(String message, Locale from, Locale to) {
|
|
|
|
return "translated by Google";
|
|
|
|
}
|
|
|
|
}
|