Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeanDefinition ¶
type BeanDefinition interface {
Type() reflect.Type // 类型
Value() reflect.Value // 值
Interface() interface{} // 源
ID() string // 返回 bean 的 ID
BeanName() string // 返回 bean 的名称
TypeName() string // 返回类型的全限定名
Created() bool // 返回是否已创建
Wired() bool // 返回是否已注入
}
BeanDefinition bean 元数据。
type BeanSelector ¶
type BeanSelector interface{}
BeanSelector bean 选择器,可以是 bean ID 字符串,可 以是 reflect.Type 对象,可以是形如 (*error)(nil) 的指针,还可以是 Definition 类型的对象。
type RefreshArg ¶
type RefreshArg struct {
AutoClear bool
}
type RefreshOption ¶
type RefreshOption func(arg *RefreshArg)
func AutoClear ¶
func AutoClear(enable bool) RefreshOption
Click to show internal directories.
Click to hide internal directories.