We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb79107 commit 35f78dfCopy full SHA for 35f78df
1 file changed
cdi/event/TextService.java
@@ -0,0 +1,21 @@
1
+package com.zetcode.service;
2
+
3
+import com.zetcode.TextModify;
4
5
+import javax.enterprise.event.Event;
6
+import javax.inject.Inject;
7
8
+public class TextService {
9
10
+ @Inject @TextModify
11
+ private Event<String> textEvent;
12
13
+ public String upper(String val) {
14
15
+ var msg = String.format("%s modified to uppercase", val);
16
17
+ textEvent.fire(msg);
18
19
+ return val.toUpperCase();
20
+ }
21
+}
0 commit comments