909256e46f11fbb3b88b77f25d2a4e3decf85898
[mediacube.git] /
1 package hu.user.mediacube.indexer.service;\r
2 \r
3 import org.springframework.beans.factory.annotation.Autowired;\r
4 \r
5 import hu.user.mediacube.indexer.JsonProperties;\r
6 \r
7 //@Service\r
8 public class PolishGreetingService implements GreetingService {\r
9 \r
10         @Autowired\r
11         private JsonProperties jsonProperties;\r
12 \r
13         @Override\r
14         public String greet(int id) {\r
15                 String message = "Hello";\r
16                 if (jsonProperties != null)\r
17                         message = jsonProperties.getPolishMessage();\r
18                 return message + " " + id;\r
19         }\r
20 }