-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Event-based transaction handling (#61)
* refactor: Chage Transaction...Handler to Transaction...Listener * feat: Dispatch transaction event based on event-type
- Loading branch information
Showing
15 changed files
with
328 additions
and
65 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
src/main/kotlin/org/rooftop/netx/api/TransactionCommitHandler.kt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/org/rooftop/netx/api/TransactionCommitListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.rooftop.netx.api | ||
|
||
import kotlin.reflect.KClass | ||
|
||
@Target(AnnotationTarget.FUNCTION) | ||
@Retention(AnnotationRetention.RUNTIME) | ||
annotation class TransactionCommitListener( | ||
val event: KClass<*> = Any::class | ||
) |
5 changes: 0 additions & 5 deletions
5
src/main/kotlin/org/rooftop/netx/api/TransactionJoinHandler.kt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/org/rooftop/netx/api/TransactionJoinListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.rooftop.netx.api | ||
|
||
import kotlin.reflect.KClass | ||
|
||
@Target(AnnotationTarget.FUNCTION) | ||
@Retention(AnnotationRetention.RUNTIME) | ||
annotation class TransactionJoinListener( | ||
val event: KClass<*> = Any::class | ||
) |
5 changes: 0 additions & 5 deletions
5
src/main/kotlin/org/rooftop/netx/api/TransactionRollbackHandler.kt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/org/rooftop/netx/api/TransactionRollbackListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.rooftop.netx.api | ||
|
||
import kotlin.reflect.KClass | ||
|
||
@Target(AnnotationTarget.FUNCTION) | ||
@Retention(AnnotationRetention.RUNTIME) | ||
annotation class TransactionRollbackListener( | ||
val event: KClass<*> = Any::class | ||
) |
5 changes: 0 additions & 5 deletions
5
src/main/kotlin/org/rooftop/netx/api/TransactionStartHandler.kt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/org/rooftop/netx/api/TransactionStartListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.rooftop.netx.api | ||
|
||
import kotlin.reflect.KClass | ||
|
||
@Target(AnnotationTarget.FUNCTION) | ||
@Retention(AnnotationRetention.RUNTIME) | ||
annotation class TransactionStartListener( | ||
val event: KClass<*> = Any::class | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.