forked from TencentBlueKing/bk-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 引擎等MQ场景接入SCS框架 TencentBlueKing#7443
- Loading branch information
royalhuang
committed
Sep 23, 2022
1 parent
795ff77
commit c691757
Showing
4 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
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
12 changes: 12 additions & 0 deletions
12
...mmon-stream/src/main/kotlin/com/tencent/devops/common/stream/utils/DefaultBindingUtils.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,12 @@ | ||
package com.tencent.devops.common.stream.utils | ||
|
||
import java.lang.reflect.Method | ||
|
||
object DefaultBindingUtils { | ||
|
||
fun getOutBindingName(clazz: Class<*>) = "${clazz.simpleName.decapitalize()}Out" | ||
|
||
fun getInBindingName(method: Method) = "${method.name}In" | ||
|
||
fun getInBindingName(clazz: Class<*>) = "${clazz.simpleName.decapitalize()}In" | ||
} |
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