SimbotDispatcherConfigurer

用于在 starter 中配置 SpringEventDispatcherConfiguration, 默认情况下注册到 spring 中生效,可注册多个。

Kotlin example:

@Component
class MySimbotDispatcherConfigurer : SimbotDispatcherConfigurer {
// impl...
}
@Configuration
open class MySimbotDispatcherConfiguration {
@Bean
open fun myDispatcherConfigurer(): SimbotDispatcherConfigurer = ...
}

Java example:

@Component
public class MySimbotDispatcherConfigurer implements SimbotDispatcherConfigurer {
// impl...
}
@Configuration
public class MySimbotDispatcherConfiguration {
@Bean
public SimbotDispatcherConfigurer myDispatcherConfigurer() {
return ...
}
}

Author

ForteScarlet

Functions

Link copied to clipboard
abstract fun configure(configuration: SpringEventDispatcherConfiguration)