aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authortherealbush <therealbush@users.noreply.github.com>2022-04-24 13:08:35 -0700
committertherealbush <therealbush@users.noreply.github.com>2022-04-24 13:08:35 -0700
commit50d79fdf2bc980a68e146a0cdd603658ee642fb1 (patch)
tree347c44fb699e68d04b01bfa08227596e7fa1ca5a /src/main
parentf3c07f1525a03f7278a8b431b2e0fbd2595c3738 (diff)
downloadeventbus-kotlin-50d79fdf2bc980a68e146a0cdd603658ee642fb1.tar.gz
eventbus-kotlin-50d79fdf2bc980a68e146a0cdd603658ee642fb1.tar.bz2
eventbus-kotlin-50d79fdf2bc980a68e146a0cdd603658ee642fb1.zip
explitly declared transitive dependencies, made eventbus open for object singletons
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt b/src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt
index e08ef14..93b9199 100644
--- a/src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt
+++ b/src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt
@@ -10,7 +10,7 @@ import kotlin.reflect.KClass
* @author bush
* @since 1.0.0
*/
-class EventBus(private val config: Config = Config()) {
+open class EventBus(private val config: Config = Config()) {
private val listeners = ConcurrentHashMap<KClass<*>, ListenerGroup>()
private val subscribers = ConcurrentHashMap.newKeySet<Any>()
private val cache = ConcurrentHashMap<Any, List<Listener>?>()