苏州瑞玛APS项目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
899 B

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package container
  3. // 组件信息管理器接口
  4. type InformationManager interface {
  5. // 注册基本组件
  6. // 参数
  7. // 1.工厂方法
  8. // 2.是否是全局组件
  9. // 返回值:
  10. RegisterElement(interface{}, bool)
  11. // 注册服务组件
  12. // 参数
  13. // 1.工厂方法
  14. // 2.是否是全局组件
  15. // 返回值:
  16. // 1.服务组件信息
  17. RegisterService(interface{}, bool) *ServiceInformation
  18. // 获取指定组件信息
  19. // 参数
  20. // 1.组件接口类型
  21. // 返回值:
  22. // 1.组件信息
  23. Item(Interface) ComponentInformation
  24. // 获取组件列表
  25. // 返回值:
  26. // 1.组件列表
  27. Items() []ComponentInformation
  28. }
  29. // 使用默认实现创建组件信息管理器
  30. // 返回值:
  31. // 1.组件信息管理器
  32. func NewInformationManager() InformationManager {
  33. return NewDefaultInformationManager()
  34. }