Package org.uberfire.mocks
Class EventSourceMock<T>
- java.lang.Object
-
- org.uberfire.mocks.EventSourceMock<T>
-
- All Implemented Interfaces:
javax.enterprise.event.Event<T>
public class EventSourceMock<T> extends Object implements javax.enterprise.event.Event<T>
-
-
Constructor Summary
Constructors Constructor Description EventSourceMock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfire(T event)<U extends T>
CompletionStage<U>fireAsync(U event)<U extends T>
CompletionStage<U>fireAsync(U event, javax.enterprise.event.NotificationOptions options)javax.enterprise.event.Event<T>select(Annotation... qualifiers)<U extends T>
javax.enterprise.event.Event<U>select(Class<U> subtype, Annotation... qualifiers)<U extends T>
javax.enterprise.event.Event<U>select(javax.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
-
-
-
Method Detail
-
select
public javax.enterprise.event.Event<T> select(Annotation... qualifiers)
- Specified by:
selectin interfacejavax.enterprise.event.Event<T>
-
select
public <U extends T> javax.enterprise.event.Event<U> select(Class<U> subtype, Annotation... qualifiers)
- Specified by:
selectin interfacejavax.enterprise.event.Event<T>
-
fireAsync
public <U extends T> CompletionStage<U> fireAsync(U event)
- Specified by:
fireAsyncin interfacejavax.enterprise.event.Event<T>
-
fireAsync
public <U extends T> CompletionStage<U> fireAsync(U event, javax.enterprise.event.NotificationOptions options)
- Specified by:
fireAsyncin interfacejavax.enterprise.event.Event<T>
-
select
public <U extends T> javax.enterprise.event.Event<U> select(javax.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
- Specified by:
selectin interfacejavax.enterprise.event.Event<T>
-
-