ExtensionContainer

扩展的容器, 可以对扩展进行管理, 例如 add, remove, getByName, configure 等操作.

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun add(name: String, extension: Any, override: Boolean): Result

添加指定名字的扩展到容器中.

Link copied to clipboard
abstract fun <T> configure(name: String, action: T.() -> Unit)

配置容器中指定名字的扩展.

Link copied to clipboard
abstract fun <T> getByName(name: String): T?

根据名称查找容器中的扩展.

Link copied to clipboard
abstract fun remove(name: String): Result

移除指定名称的扩展.