APPLICATION_EVENT_BUS_POD_NAME property
The reserved pod name for the ApplicationEventBus.
The event bus enables publish-subscribe communication within the application context, allowing pods to publish and consume application events without tight coupling.
Event Types:
- Context Events: Lifecycle events like refresh, start, stop
- Application Events: Custom domain events specific to application
- Framework Events: Internal framework operation events
Usage:
class MyService {
final ApplicationEventBus eventBus;
MyService(this.eventBus);
void performAction() {
eventBus.publish(MyCustomEvent(this, actionData));
}
}
Implementation
static final String APPLICATION_EVENT_BUS_POD_NAME = "jetleaf.internal.applicationEventBus";