# Functions
New 创建 IoC 容器。.
NewArgContext creates a new ArgContext with a given Container and WiringStack.
NewBean 普通函数注册时需要使用 reflect.ValueOf(fn) 形式以避免和构造函数发生冲突。.
NewWiringStack creates a new WiringStack instance.
# Variables
No description provided by the author
# Structs
ArgContext holds a Container and a WiringStack to manage dependency injection.
Container 是 go-spring 框架的基石,实现了 Martin Fowler 在 << Inversion of Control Containers and the Dependency Injection pattern >> 一文中 提及的依赖注入的概念。但原文的依赖注入仅仅是指对象之间的依赖关系处理,而有些 IoC 容器在实现时比如 Spring 还引入了对属性 property 的处理。通常大家会用依赖注入统 述上面两种概念,但实际上使用属性绑定来描述对 property 的处理会更加合适,因此 go-spring 严格区分了这两种概念,在描述对 bean 的处理时要么单独使用依赖注入或属 性绑定,要么同时使用依赖注入和属性绑定。.
WiringStack tracks the injection path of beans and their destroyers.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author