| 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.providers |
Contains actual implementations of
EventProviders. |
| de.skuzzle.jeve.stores |
Contains actual implementations of
ListenerStores. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
EventProvider<S extends ListenerStore>
EventProvider instances are used to inform clients about certain events.
|
| Modifier and Type | Method and Description |
|---|---|
protected ListenerStore |
Event.getListenerStore()
Gets the
ListenerStore from which the currently notified listener
has been retrieved. |
ListenerStore |
ListenerStore.synchronizedView()
Returns a thread safe view of this store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Event.setListenerStore(ListenerStore store)
Sets the ListenerStore from which the currently dispatching EventProvider
retrieves its Listeners.
|
| Constructor and Description |
|---|
RegistrationEvent(ListenerStore source,
Class<? extends Listener> cls)
Creates a new RegistrationEvent.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
CustomConfigurator<S extends ListenerStore,C,E extends EventProvider<S>>
Hook in point for custom fluent builder API to use with
EventProvider.configure(). |
static interface |
EventProviderConfigurator.AsyncProviderConfigurator<S extends ListenerStore,E extends EventProvider<S>>
Provides configuration for EventProviders which use an
ExecutorService for dispatching Events using multi threading. |
static interface |
EventProviderConfigurator.ProviderChooser<S extends ListenerStore>
Configures the type of EventProvider to use on the previously chosen
ListenerStore.
|
static interface |
EventProviderConfigurator.ProviderConfigurator<S extends ListenerStore,E extends EventProvider<S>>
Provides configuration mostly for non-threaded EventProviders.
|
| Modifier and Type | Method and Description |
|---|---|
<S extends ListenerStore> |
EventProviderConfigurator.store(S store)
Chooses the provided
store to manage Listeners
for the EventProvider instance to be created. |
<S extends ListenerStore> |
EventProviderConfigurator.store(Supplier<S> storeSupplier)
Use the provided supplier to lazily create the
ListenerStore to
use. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEventProvider<S extends ListenerStore>
Implementation of basic
EventProvider methods. |
class |
AsynchronousEventProvider<S extends ListenerStore>
This EventProvider fires events asynchronously using an
ExecutorService for managing the creation of threads. |
class |
AWTEventProvider<S extends ListenerStore>
EventProvider implementation that dispatches all events in the AWT
event thread. |
class |
ParallelEventProvider<S extends ListenerStore>
EventProvider implementation which uses an
ExecutorService to notify
each listener within a dedicated thread. |
class |
SequentialEventProvider<S extends ListenerStore>
EventProvider implementation which is always ready for dispatching
and simply runs all listeners within the current thread. |
class |
StatisticsEventProvider<S extends ListenerStore,P extends EventProvider<S>>
EventProvider which delegates all method calls to a wrapped instance and
counts all dispatch actions.
|
class |
UnrollingEventProvider<S extends ListenerStore>
Provider which queues events while dispatching.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSynchronizedListenerStore<T extends ListenerStore>
Helper class for implementing the
synchronizedView()
method. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DefaultListenerStore
Sequential
ListenerStore implementation. |
interface |
PerformanceListenerStore
Extension to the
DefaultListenerStore which offers to enable higher
get(Class) performance. |
interface |
PriorityListenerStore
Non-sequential
ListenerStore implementation which provides Listener
prioritization upon registering. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractListenerStore
Abstract helper class for implementing your own
ListenerStores. |
class |
AbstractSynchronizedListenerStore<T extends ListenerStore>
Helper class for implementing the
synchronizedView()
method. |
| Modifier and Type | Field and Description |
|---|---|
protected T |
AbstractSynchronizedListenerStore.wrapped
The wrapped store
|
Copyright © 2014–2015. All rights reserved.