| Package | Description |
|---|---|
| org.openstreetmap.josm.eventbus |
The EventBus allows publish-subscribe-style communication between components without requiring
the components to explicitly register with one another (and thus be aware of each other).
|
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncEventBus
An
EventBus that takes the Executor of your choice and uses it to dispatch events,
allowing dispatch to occur asynchronously. |
| Modifier and Type | Field and Description |
|---|---|
private EventBus |
SubscriberRegistry.bus
The event bus this registry belongs to.
|
private EventBus |
Subscriber.bus
The event bus this subscriber belongs to.
|
private static EventBus |
JosmEventBus.BUS |
private EventBus |
SubscriberExceptionContext.eventBus |
| Modifier and Type | Method and Description |
|---|---|
static EventBus |
JosmEventBus.getBus()
Returns the unique JOSM event bus.
|
EventBus |
SubscriberExceptionContext.getEventBus() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Subscriber |
Subscriber.create(EventBus bus,
Object listener,
Method method)
Creates a
Subscriber for method on listener. |
| Constructor and Description |
|---|
Subscriber(EventBus bus,
Object target,
Method method) |
SubscriberExceptionContext(EventBus eventBus,
Object event,
Object subscriber,
Method subscriberMethod) |
SubscriberRegistry(EventBus bus)
Constructs a new
SubscriberRegistry. |
SynchronizedSubscriber(EventBus bus,
Object target,
Method method) |