Skip to content

Commit

Permalink
cancel assigned mfe
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsamson7 committed Nov 13, 2024
1 parent 05f8150 commit 51c896b
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 140 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package org.sirius.events

/*
* @COPYRIGHT (C) 2023 Andreas Ernst
*
* All rights reserved
*/
abstract class AbstractEventListener<T> {
abstract fun on(event: T)
}
6 changes: 5 additions & 1 deletion events/src/main/kotlin/org/sirius/events/Event.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package org.sirius.events

/*
* @COPYRIGHT (C) 2023 Andreas Ernst
*
* All rights reserved
*/
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS)
Expand Down
5 changes: 5 additions & 0 deletions events/src/main/kotlin/org/sirius/events/EventDescriptor.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
package org.sirius.events
/*
* @COPYRIGHT (C) 2023 Andreas Ernst
*
* All rights reserved
*/

import org.apache.activemq.artemis.api.core.client.ClientProducer

Expand Down
14 changes: 14 additions & 0 deletions events/src/main/kotlin/org/sirius/events/EventError.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.sirius.events
/*
* @COPYRIGHT (C) 2023 Andreas Ernst
*
* All rights reserved
*/

import kotlin.Throwable

class EventError : Error {
constructor(message: String) : super(message) {}

constructor(message: String, throwable: Throwable) : super(message, throwable) {}
}
8 changes: 6 additions & 2 deletions events/src/main/kotlin/org/sirius/events/EventListener.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
package org.sirius.events

/*
* @COPYRIGHT (C) 2023 Andreas Ernst
*
* All rights reserved
*/
import kotlin.reflect.KClass

@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS)
annotation class EventListener(
val name: String = "",
//val name: String = "",
val event: KClass<out Any>
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package org.sirius.events

/*
* @COPYRIGHT (C) 2023 Andreas Ernst
*
* All rights reserved
*/
import org.springframework.beans.factory.config.BeanDefinition
import kotlin.reflect.KClass

Expand Down
Loading

0 comments on commit 51c896b

Please sign in to comment.