SimbootApplication

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class SimbootApplication(val classesPackages: Array<String> = [], val topListenerPackages: Array<String> = [], val classesPackagesForTopListener: Boolean = false, val topBinderPackages: Array<String> = [], val classesPackagesForTopBinder: Boolean = false, val botResources: Array<String> = [], val autoStartBots: Boolean = true)

基础的 boot-core 所使用的启动类标记注解,提供部分参数, 主要用于在 SimbootApp 中使用。

不应 在spring环境下使用。

SimbootApplication 暂不支持注解继承等机制。在使用的时候会直接被获取。

Properties

Link copied to clipboard

是否在最终自动启动所有注册的bot。默认为true。

Link copied to clipboard

指定具体的bot配置文件扫描路径。

Link copied to clipboard

指定所需扫描包路径。 如果为空默认选取标记类所在包路径为根路径。

Link copied to clipboard

是否在 topBinderPackages 为空的情况下使用 classesPackages 的最终值。 如果为 true, 则当 topBinderPackages 为空的时候(也就是默认的时候)使用 classesPackages. 同样的,如果 classesPackages 为空,则会使用被标记类所在包的路径。

Link copied to clipboard

是否在 topListenerPackages 为空的情况下使用 classesPackages 的最终值。 如果为 true, 则当 topListenerPackages 为空的时候(也就是默认的时候)使用 classesPackages. 同样的,如果 classesPackages 为空,则会使用被标记类所在包的路径。

Link copied to clipboard

指定需要扫描的顶层 BinderFactory 函数路径。

Link copied to clipboard

指定需要扫描的顶层监听函数路径。