Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimpleInstance ¶ added in v0.0.41
func SimpleInstance(f application.ComponentFactory, i lang.Object) application.ComponentInstance
Types ¶
type ComponentInfoBuilder ¶ added in v0.0.41
type ComponentInfoBuilder interface { ID(id string) ComponentInfoBuilder Class(class string) ComponentInfoBuilder Aliases(aliases string) ComponentInfoBuilder Scope(scope string) ComponentInfoBuilder Factory(f application.ComponentFactory) ComponentInfoBuilder Next() ComponentInfoBuilder Create() (application.ComponentInfo, error) CreateTo(cb application.ConfigBuilder) error }
ComponentInfoBuilder 接口用于构建组件信息
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 OnInject ¶ added in v0.0.7
type OnInject func(obj lang.Object, context application.InstanceContext) error
OnInject 向组件对象注入依赖
Click to show internal directories.
Click to hide internal directories.