zam_event_bus library Null safety

Classes

Application
Application is the class that encompasses user interface and use cases. [...]
AsyncEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
  • Listens to an event
  • Executes a function that returns a future
  • Resolves the future
  • Publishes the message
  • BasicApplication
    Holds user interface and use cases. [...]
    BasicUserInterface
    A generalized utility class to configure and run user interface.
    Composer
    Utility class to compose modules, build and run app.
    ComposerConfig
    Configuration for composing the application.
    Environment
    EventBus
    EventBus is a stream based solution to remove dependencies between elements. [...]
    EventTransformer<EVENT extends Object, NEW_EVENT extends Object>
    Transforms an event to another event based on the strategy provided.
    ListEventTransformer<EVENT extends Object>
    Transforms an event to multiple events.
    ProdComposerConfig
    Prod Configuration
    ProdEnvironment
    ReactiveEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
  • Listens to an event
  • Executes a function that returns a stream
  • Listens to the stream
  • Publishes the message as the stream emits
  • SavingAsyncEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
  • Listens to an event
  • Executes a function that returns a future
  • Resolves the future
  • Publishes the message
  • Saves the message to store
  • SavingEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
    Transforms an event to another event and saves it to store.
    SavingListEventTransformer<EVENT extends Object>
    Transforms an event to multiple events and saves them to store.
    SavingReactiveEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
  • Listens to an event
  • Executes a function that returns a stream
  • Listens to the stream
  • Publishes the message as the stream emits
  • Saves the message to store
  • Store
    A key value store that saves objects by Type
    TestComposerConfig
    Test Configuration
    TestEnvironment
    UseCaseEvent
    UseCaseFailedEvent
    UseCaseSucceededEvent<DATA extends Object>
    UserInterface
    A generalized utility class to configure and run user interface.
    WrappedEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
    Transforms an event to another event based on the strategy provided.
    WrappedListEventTransformer<EVENT extends Object>
    Transforms an event to multiple events.
    WrappedSavingEventTransformer<EVENT extends Object, NEW_EVENT extends Object>
    Transforms an event to another event and saves it to store.
    WrappedSavingListEventTransformer<EVENT extends Object>
    Transforms an event to multiple events and saves them to store.

    Typedefs

    AsyncUseCase<EVENT extends Object> = AsyncEventTransformer<EVENT, UseCaseEvent>
    EventMultiplier<EVENT extends Object> = ListEventTransformer<EVENT>
    ReactiveUseCase<EVENT extends Object> = ReactiveEventTransformer<EVENT, UseCaseEvent>
    SavingAsyncUseCase<EVENT extends Object> = SavingAsyncEventTransformer<EVENT, UseCaseEvent>
    SavingEventMultiplier<EVENT extends Object> = SavingListEventTransformer<EVENT>
    SavingReactiveUseCase<EVENT extends Object> = SavingReactiveEventTransformer<EVENT, UseCaseEvent>
    SavingUseCase<EVENT extends Object> = SavingEventTransformer<EVENT, UseCaseEvent>
    UseCase<EVENT extends Object> = EventTransformer<EVENT, UseCaseEvent>
    ViewModelMapper<EVENT extends Object, VIEW_MODEL extends Object> = SavingEventTransformer<EVENT, VIEW_MODEL>
    WrappedEventMultiplier<EVENT extends Object> = WrappedListEventTransformer<EVENT>
    WrappedSavingEventMultiplier<EVENT extends Object> = WrappedSavingListEventTransformer<EVENT>

    Exceptions / Errors

    ObjectNotFoundInStoreException
    Exception that is thrown when a requested object is not found in store.