Fix CDI package names (#7715)

* Fix beans.xsd location for JavaEE 7

* Fix cdi2observers package names
This commit is contained in:
Yuriy Artamonov
2019-10-01 22:33:11 +03:00
committed by maibin
parent 823bc9d4b0
commit da1db18bc9
9 changed files with 97 additions and 94 deletions

View File

@@ -1,14 +1,14 @@
package com.baeldung.cdi.cdi2observers.events;
import javax.enterprise.event.Event;
import javax.inject.Inject;
public class ExampleEventSource {
@Inject
Event<ExampleEvent> exampleEvent;
public void fireEvent() {
exampleEvent.fireAsync(new ExampleEvent("Welcome to Baeldung!"));
}
}
package com.baeldung.cdi2observers.events;
import javax.enterprise.event.Event;
import javax.inject.Inject;
public class ExampleEventSource {
@Inject
Event<ExampleEvent> exampleEvent;
public void fireEvent() {
exampleEvent.fireAsync(new ExampleEvent("Welcome to Baeldung!"));
}
}