config

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 4 Imported by: 43

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SimpleInstance added in v0.0.41

Types

type ComponentInfoBuilder added in v0.0.41

ComponentInfoBuilder 接口用于构建组件信息

func ComInfo

func ComInfo() ComponentInfoBuilder

ComInfo 开始登记组件信息

type InjectionSelector added in v0.0.43

type InjectionSelector interface {
	GetOne(context application.InstanceContext) lang.Object
	GetList(context application.InstanceContext) []lang.Object

	GetString(context application.InstanceContext) string
	GetBool(context application.InstanceContext) bool
	GetFloat32(context application.InstanceContext) float32
	GetFloat64(context application.InstanceContext) float64
	GetInt(context application.InstanceContext) int
	GetInt8(context application.InstanceContext) int8
	GetInt16(context application.InstanceContext) int16
	GetInt32(context application.InstanceContext) int32
	GetInt64(context application.InstanceContext) int64
}

InjectionSelector 代表一个注射选择器

func NewInjectionSelector added in v0.0.43

func NewInjectionSelector(selector string, filter application.ComponentHolderFilter) InjectionSelector

NewInjectionSelector 新建一个注射选择器

type OnDestroy added in v0.0.7

type OnDestroy func(obj lang.Object) error

OnDestroy 销毁组件对象

type OnInit added in v0.0.7

type OnInit func(obj lang.Object) error

OnInit 初始化组件对象

type OnInject added in v0.0.7

type OnInject func(obj lang.Object, context application.InstanceContext) error

OnInject 向组件对象注入依赖

type OnNew added in v0.0.7

type OnNew func() lang.Object

OnNew 新建组件对象

Jump to

Keyboard shortcuts

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