| Package | Description |
|---|---|
| de.skuzzle.jeve |
This package defines the main public API of jeve. jeve is an open source
framework for implementing the observer pattern in Java 8 .
|
| de.skuzzle.jeve.invoke |
Contains abstractions for invoking methods on listeners.
|
| de.skuzzle.jeve.providers |
Contains actual implementations of
EventProviders. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTargetEvent<T,S extends Event<?,L>,L extends Listener>
Deprecated.
Since 3.0.0 - use
DefaultDispatchable instead. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTargetEvent<T,S extends Event<?,L>,L extends Listener>
Deprecated.
Since 3.0.0 - use
DefaultDispatchable instead. |
class |
RegistrationEvent
RegistrationEvents are created when adding or removing a
Listener
to/from a ListenerStore. |
class |
SequentialEvent<T,L extends Listener>
Specialized Event for use with
SynchronousEventProviders. |
| Modifier and Type | Method and Description |
|---|---|
static <L extends Listener,E extends Event<?,L>> |
EventStackHelper.checkPrevent(EventStack eventStack,
E event,
BiConsumer<L,E> bc,
ExceptionCallback ec)
Checks whether the given Event should be prevented according to the given
event stack.
|
<L extends Listener,E extends Event<?,L>> |
EventProvider.dispatch(E event,
BiConsumer<L,E> bc)
Notifies all listeners of a certain kind about an occurred event.
|
<L extends Listener,E extends Event<?,L>> |
EventProvider.dispatch(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec)
Notifies all listeners of a certain kind about an occurred event with
explicit error handling.
|
| Modifier and Type | Method and Description |
|---|---|
Event<?,?> |
SuppressedEvent.getEvent()
The Event object which has not been dispatched.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Event<?,?>> |
SequentialEvent.getCause()
Gets the cause of this event.
|
Optional<Event<?,?>> |
EventStack.peek()
Returns the head element of the current stack if there is any.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
ExceptionCallback.exception(Exception e,
Listener source,
Event<?,?> event)
Deprecated.
Since 3.0.0 - use
ExceptionCallback.exception(FailedEventInvocation)
instead. |
boolean |
EventStack.isActive(Event<?,?> event)
Determines whether an Event for the same listener class as the given
one's is currently being dispatched.
|
Optional<SequentialEvent<?,?>> |
EventStack.preventDispatch(Event<?,?> event)
Checks whether dispatch of the given event should be prevented.
|
| Modifier and Type | Method and Description |
|---|---|
static <L extends Listener,E extends Event<?,L>> |
EventInvocation.of(L listener,
E event,
BiConsumer<L,E> method,
ExceptionCallback ec)
Creates a new EventInvocation.
|
| Modifier and Type | Method and Description |
|---|---|
Event<?,?> |
EventInvocation.getEvent()
Gets the event to notify the listener about.
|
| Modifier and Type | Method and Description |
|---|---|
protected <L extends Listener,E extends Event<?,?>> |
AbstractEventProvider.checkDispatchArgs(E event,
Object bc,
ExceptionCallback ec)
Helper method which serves for throwing
IllegalArgumentException
if any of the passed arguments is null. |
protected <L extends Listener,E extends Event<?,L>> |
AbstractEventProvider.createInvocation(L listener,
E event,
BiConsumer<L,E> bc,
ExceptionCallback ec)
Creates a new
EventInvocation object for dispatching the given event to
the given listener. |
<L extends Listener,E extends Event<?,L>> |
StatisticsEventProvider.dispatch(E event,
BiConsumer<L,E> bc) |
<L extends Listener,E extends Event<?,L>> |
AbstractEventProvider.dispatch(E event,
BiConsumer<L,E> bc) |
<L extends Listener,E extends Event<?,L>> |
StatisticsEventProvider.dispatch(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec) |
<L extends Listener,E extends Event<?,L>> |
ParallelEventProvider.dispatch(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec) |
<L extends Listener,E extends Event<?,L>> |
AWTEventProvider.dispatch(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec) |
<L extends Listener,E extends Event<?,L>> |
AsynchronousEventProvider.dispatch(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec) |
<L extends Listener,E extends Event<?,L>> |
AbstractEventProvider.dispatch(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec) |
protected <L extends Listener,E extends Event<?,L>> |
UnrollingEventProvider.notifyListeners(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec) |
protected <L extends Listener,E extends Event<?,L>> |
SequentialEventProvider.notifyListeners(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec) |
protected <L extends Listener,E extends Event<?,L>> |
AbstractEventProvider.notifyListeners(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec)
Notifies all listeners registered for the provided class with the
provided event.
|
protected <L extends Listener,E extends Event<?,L>> |
AbstractEventProvider.notifySingle(L listener,
E event,
BiConsumer<L,E> bc,
ExceptionCallback ec)
Notifies a single listener and internally handles exceptions using the
ExceptionCallback. |
Copyright © 2014–2015. All rights reserved.