Index

B E G I P R U 
All Classes and Interfaces|All Packages

B

BaseEventBus - Class in io.github.astrapi69.design.pattern.eventbus
The GenericEventBus is a final utility class that provides a centralized event bus mechanism for managing and dispatching events using EventSource objects.
BaseEventBus(String) - Constructor for class io.github.astrapi69.design.pattern.eventbus.BaseEventBus
Instantiates a new BaseEventBus object

E

EventBus<S,E> - Interface in io.github.astrapi69.design.pattern.eventbus.api
The EventBus interface defines the contract for an event bus system that allows objects to register as subscribers, unregister from receiving events, and post events to all registered subscribers.

G

GenericEventBus - Class in io.github.astrapi69.design.pattern.eventbus
The GenericEventBus is a final utility class that provides a centralized event bus mechanism for managing and dispatching events using EventSource objects.
getSubscribers() - Method in interface io.github.astrapi69.design.pattern.eventbus.api.EventBus
Retrieves all currently registered subscriber objects.

I

io.github.astrapi69.design.pattern.eventbus - package io.github.astrapi69.design.pattern.eventbus
 
io.github.astrapi69.design.pattern.eventbus.api - package io.github.astrapi69.design.pattern.eventbus.api
 
io.github.astrapisixtynine.design.patterns.eventbus - module io.github.astrapisixtynine.design.patterns.eventbus
The MIT License Copyright (C) 2022 Asterios Raptis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

P

post(E) - Method in interface io.github.astrapi69.design.pattern.eventbus.api.EventBus
Posts the specified event to all registered subscribers Each subscriber that is interested in the event will receive it.
post(T) - Method in class io.github.astrapi69.design.pattern.eventbus.BaseEventBus
Posts an event to the event bus.
post(T) - Static method in class io.github.astrapi69.design.pattern.eventbus.GenericEventBus
Posts an event to the event bus.

R

register(EventListener<EventObject<T>>, Class<T>) - Method in class io.github.astrapi69.design.pattern.eventbus.BaseEventBus
Registers a new EventListener with the specified event source type class to this EventBus instance
register(EventListener<EventObject<T>>, Class<T>) - Static method in class io.github.astrapi69.design.pattern.eventbus.GenericEventBus
Registers a new EventListener with the specified event source type class to this EventBus instance
register(S) - Method in interface io.github.astrapi69.design.pattern.eventbus.api.EventBus
Registers the specified subscriber object to the event bus After registration, the subscriber will receive events posted to the bus.

U

unregister(EventListener<EventObject<T>>, Class<T>) - Method in class io.github.astrapi69.design.pattern.eventbus.BaseEventBus
Unregisters the given EventListener with the specified event source type class from this EventBus
unregister(EventListener<EventObject<T>>, Class<T>) - Static method in class io.github.astrapi69.design.pattern.eventbus.GenericEventBus
Unregisters the given EventListener with the specified event source type class from this EventBus
unregister(S) - Method in interface io.github.astrapi69.design.pattern.eventbus.api.EventBus
Unregisters the specified subscriber object from the event bus After unregistration, the subscriber will no longer receive events posted to the bus.
B E G I P R U 
All Classes and Interfaces|All Packages