v3 6
This commit is contained in:
parent
b1e250c7a7
commit
1f0be50126
4
.github/workflows/v3.yml
vendored
4
.github/workflows/v3.yml
vendored
@ -104,7 +104,7 @@ jobs:
|
||||
id: build-processer
|
||||
run: |
|
||||
chmod +x ./gradlew
|
||||
./gradlew :apps:processer:bootJar --info
|
||||
./gradlew :apps:processer:bootJar --info --stacktrace
|
||||
echo "Build completed"
|
||||
|
||||
|
||||
@ -161,7 +161,7 @@ jobs:
|
||||
id: build-converter
|
||||
run: |
|
||||
chmod +x ./gradlew
|
||||
./gradlew :apps:converter:bootJar --info
|
||||
./gradlew :apps:converter:bootJar --info --debug
|
||||
echo "Build completed"
|
||||
|
||||
|
||||
|
||||
@ -74,6 +74,7 @@ abstract class EventCoordinator<T : EventImpl, E : EventsManagerImpl<T>> {
|
||||
}
|
||||
|
||||
private var cachedListeners: List<String> = emptyList()
|
||||
@SuppressWarnings("unchecked cast")
|
||||
fun getListeners(): List<EventListenerImpl<T, *>> {
|
||||
val serviceBeans: Map<String, Any> = applicationContext.getBeansWithAnnotation(Service::class.java)
|
||||
|
||||
@ -81,7 +82,7 @@ abstract class EventCoordinator<T : EventImpl, E : EventsManagerImpl<T>> {
|
||||
.filter { bean: Any? -> bean is EventListenerImpl<*, *> }
|
||||
.map { it -> it as EventListenerImpl<*, *> }
|
||||
.toList()
|
||||
val eventListeners = beans as List<EventListenerImpl<T, *>>
|
||||
val eventListeners: List<EventListenerImpl<T, *>> = beans as List<EventListenerImpl<T, *>>
|
||||
val listenerNames = eventListeners.map { it::class.java.name }
|
||||
if (listenerNames != cachedListeners) {
|
||||
listenerNames.filter { it !in cachedListeners }.forEach {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user