LoadableContainer

按优先级加载和卸载 Xerr 配置的内部生命周期容器。 Internal lifecycle registry that loads and unloads Xerr configuration by priority.

Functions

Link copied to clipboard
open fun add(value: Loadable)

追加一个实体。 / Appends an entity.

Link copied to clipboard
open fun clear()

清空容器。 / Clears the registry.

Link copied to clipboard
fun getAll(): List<Loadable>

返回当前实体列表的快照。 / Returns a snapshot of the current entries.

Link copied to clipboard
fun load()
Link copied to clipboard
fun reset()

卸载后重新加载配置;调用方须在服务端主线程协调刷新。 Unloads then reloads configuration; callers must coordinate the refresh on the server thread.

Link copied to clipboard
fun unload()

按相反优先级卸载所有配置与显示任务。 Unloads configurations and display tasks in reverse priority order.