Package com.bytedesk.core.plugin
Class CorePlugin
java.lang.Object
com.bytedesk.core.plugin.AbstractBytedeskPlugin
com.bytedesk.core.plugin.CorePlugin
- All Implemented Interfaces:
BytedeskPlugin
核心模块插件
提供基础功能:用户管理、权限控制、消息系统等
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.springframework.boot.actuate.health.HealthIndicatorprivate booleanprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]获取插件依赖的其他插件ID列表获取插件描述protected org.springframework.boot.actuate.health.HealthIndicator获取健康指示器 子类可以重写此方法提供自定义的HealthIndicator获取插件唯一标识符获取插件名称int插件优先级(数字越小优先级越高)获取插件版本void插件初始化boolean插件是否启用Methods inherited from class com.bytedesk.core.plugin.AbstractBytedeskPlugin
destroy, formatDuration, getAuthor, getHealthStatus, getStatisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.bytedesk.core.plugin.BytedeskPlugin
getWebsite
-
Field Details
-
enabled
@Value("${bytedesk.core.enabled:true}") private boolean enabled -
version
-
coreHealthIndicator
@Autowired(required=false) private org.springframework.boot.actuate.health.HealthIndicator coreHealthIndicator
-
-
Constructor Details
-
CorePlugin
public CorePlugin()
-
-
Method Details
-
getHealthIndicator
protected org.springframework.boot.actuate.health.HealthIndicator getHealthIndicator()Description copied from class:AbstractBytedeskPlugin获取健康指示器 子类可以重写此方法提供自定义的HealthIndicator- Overrides:
getHealthIndicatorin classAbstractBytedeskPlugin
-
getPluginId
Description copied from interface:BytedeskPlugin获取插件唯一标识符- Returns:
- 插件ID,如:kbase, service, ticket, ai, call, voc
-
getPluginName
Description copied from interface:BytedeskPlugin获取插件名称- Returns:
- 插件显示名称
-
getDescription
Description copied from interface:BytedeskPlugin获取插件描述- Returns:
- 插件功能描述
-
getVersion
Description copied from interface:BytedeskPlugin获取插件版本- Returns:
- 版本号
-
isEnabled
public boolean isEnabled()Description copied from interface:BytedeskPlugin插件是否启用- Returns:
- true表示启用,false表示禁用
-
getPriority
public int getPriority()Description copied from interface:BytedeskPlugin插件优先级(数字越小优先级越高)- Returns:
- 优先级值,默认100
-
getDependencies
Description copied from interface:BytedeskPlugin获取插件依赖的其他插件ID列表- Returns:
- 依赖的插件ID数组,如果没有依赖返回空数组
-
initialize
public void initialize()Description copied from class:AbstractBytedeskPlugin插件初始化- Specified by:
initializein interfaceBytedeskPlugin- Overrides:
initializein classAbstractBytedeskPlugin
-