Wow
Toggle table of contents
6.5.1
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Wow
wow-api
/
me.ahoo.wow.api.annotation
/
AfterCommand
After
Command
@
Target
(
allowedTargets
=
[
AnnotationTarget.FUNCTION
,
AnnotationTarget.ANNOTATION_CLASS
]
)
@
Inherited
@
OnMessage
(
functionKind
=
FunctionKind.COMMAND
,
defaultFunctionName
=
"afterCommand"
)
annotation class
AfterCommand
(
val
include
:
Array
<
KClass
<
*
>
>
=
[]
,
val
exclude
:
Array
<
KClass
<
*
>
>
=
[]
)
在命令函数完成执行后执行的函数。
当返回值不为空时将作为领域事件追加到事件流中。
Parameters
include
需要监听的命令类型。
exclude
排除监听的命令类型。
Members
Properties
exclude
Link copied to clipboard
val
exclude
:
Array
<
KClass
<
*
>
>
include
Link copied to clipboard
val
include
:
Array
<
KClass
<
*
>
>