You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.asciidoc
+17
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,23 @@ for (Student s : result) {
177
177
CDI
178
178
---
179
179
180
+
* Generate an interface `Greeting`
181
+
+
182
+
[source,java]
183
+
----
184
+
public interface Greeting {
185
+
public String sayHello();
186
+
}
187
+
----
188
+
+
189
+
* Create a new class `SimpleGreeting`, implement the interface
190
+
* Inject the bean in Servlet as `@Inject Greeting greeting;`
191
+
* Print the output as `response.getOutputStream().print(greeting.sayHello());`
192
+
* Show ``New missing/unsatisfied dependencies'' error and explain default injection
193
+
* Add `@Dependent` on bean
194
+
* Create a new class `FancyGreeting`, implement the interface, add `@Dependent`
195
+
* Create a new qualifier using the wizard
196
+
180
197
* Wizards:
181
198
http://docs.jboss.org/tools/4.1.x.Final/en/cdi_tools_reference_guide/html/chap-CDI_Tools_Reference_Guide-Creating_a_CDI_Web_Project.html[New CDI Web Project Wizard],
0 commit comments