Index
All Classes and Interfaces|All Packages
C
- containsKey(Class<T>) - Static method in class io.github.astrapi69.design.pattern.eventbus.GenericEventBus
-
Checks if the event bus contains an event source associated with the specified class type
- containsKey(String) - Static method in class io.github.astrapi69.design.pattern.eventbus.GenericEventBus
-
Checks if the event bus contains an event source associated with the specified key
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 usingEventSource
objects. - get(String) - Static method in class io.github.astrapi69.design.pattern.eventbus.GenericEventBus
-
Retrieves the event source associated with the specified key
- getEventSource(Class<T>) - Static method in class io.github.astrapi69.design.pattern.eventbus.GenericEventBus
-
Retrieves the event source associated with the specified class type.
I
- io.github.astrapi69.design.pattern.eventbus - package io.github.astrapi69.design.pattern.eventbus
- 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(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>) - 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 - remove(Class<T>) - Static method in class io.github.astrapi69.design.pattern.eventbus.GenericEventBus
-
Removes the event source associated with the specified class type
All Classes and Interfaces|All Packages