| 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.builder |
This package contains the specification of jeve's fluent builder API for
creating
EventProvider. |
| 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 |
FailureCollector
This class can be used for collecting failed dispatch attempts during event
dispatching.
|
| 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.
|
void |
DefaultDispatchable.defaultDispatch(EventProvider<?> provider,
ExceptionCallback ec)
Dispatches this event with the given EventProvider using the listener's
default listening method.
|
static FailureCollector |
FailureCollector.delegatingTo(ExceptionCallback ec)
Creates a new FailureCollector which collects every failed notification
attempt, then handle the exception with the given delegate
ExceptionCallback. |
default void |
EventProvider.dispatch(DefaultDispatchable event,
ExceptionCallback ec)
Dispatches the given event by calling its
DefaultDispatchable.defaultDispatch(EventProvider, ExceptionCallback)
method, passing this as first argument and the given
ExceptionCallback as second argument. |
<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.
|
default <L extends Listener,E extends DefaultTargetEvent<?,E,L>> |
EventProvider.dispatch(E event,
ExceptionCallback ec)
Deprecated.
Since 3.0.0 - Use
EventProvider.dispatch(DefaultDispatchable, ExceptionCallback)
instead. |
void |
EventProvider.setExceptionCallback(ExceptionCallback ec)
Sets the default
ExceptionCallback which will be notified about
exceptions when dispatching events without explicitly specifying an
ExceptionCallback. |
| Modifier and Type | Method and Description |
|---|---|
EventProviderConfigurator.Chainable<EventProviderConfigurator.ProviderConfigurator<S,E>,E> |
EventProviderConfigurator.ProviderConfigurator.exceptionCallBack(ExceptionCallback ec)
Configures the
ExceptionCallback to use. |
EventProviderConfigurator.Chainable<EventProviderConfigurator.AsyncProviderConfigurator<S,E>,E> |
EventProviderConfigurator.AsyncProviderConfigurator.exceptionCallBack(ExceptionCallback ec)
Configures the
ExceptionCallback to use. |
| Modifier and Type | Method and Description |
|---|---|
EventProviderConfigurator.Chainable<EventProviderConfigurator.ProviderConfigurator<S,E>,E> |
EventProviderConfigurator.ProviderConfigurator.exceptionCallBack(Supplier<ExceptionCallback> callBackSupplier)
Configures the
ExceptionCallback to use as a supplier. |
EventProviderConfigurator.Chainable<EventProviderConfigurator.AsyncProviderConfigurator<S,E>,E> |
EventProviderConfigurator.AsyncProviderConfigurator.exceptionCallBack(Supplier<ExceptionCallback> callBackSupplier)
Configures the
ExceptionCallback to use as a supplier. |
| 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 | Field and Description |
|---|---|
protected ExceptionCallback |
AbstractEventProvider.defaultHandler
The default
ExceptionCallback which prints some information about
the occurred error to logger. |
protected ExceptionCallback |
AbstractEventProvider.exceptionHandler
Callback to handle event handler exceptions.
|
| 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,
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. |
void |
StatisticsEventProvider.setExceptionCallback(ExceptionCallback ec) |
void |
AbstractEventProvider.setExceptionCallback(ExceptionCallback callBack) |
Copyright © 2014–2015. All rights reserved.