GAAS GFrame项目web后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
871 B

// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
package container
// 组件信息管理器接口
type InformationManager interface {
// 注册基本组件
// 参数
// 1.工厂方法
// 返回值:
// .错误
RegisterElement(interface{}) error
// 注册服务组件
// 参数
// 1.工厂方法
// 返回值:
// 1.服务组件信息
// 2.错误
RegisterService(interface{}) (*ServiceInformation, error)
// 获取指定组件信息
// 参数
// 1.组件接口类型
// 返回值:
// 1.组件信息
Item(Interface) ComponentInformation
// 获取组件列表
// 返回值:
// 1.组件列表
Items() []ComponentInformation
}
// 使用默认实现创建组件信息管理器
// 返回值:
// 1.组件信息管理器
func NewInformationManager() InformationManager {
return NewDefaultInformationManager()
}