internal

package
v1.1.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL