runtime

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreationContext

type CreationContext interface {
	io.Closer
	GetScope() application.ComponentScope
	GetContext() application.Context

	ErrorCollector() lang.ErrorCollector
	HandleError(err error)
	LastError() error

	LoadComponent(h application.ComponentHolder) (lang.Object, error)
	LoadComponents(list []application.ComponentHolder) []lang.Object
}

CreationContext 是构建时的上下文

type PrototypeComponentHolder

type PrototypeComponentHolder struct {
	// contains filtered or unexported fields
}

func (*PrototypeComponentHolder) GetContext

func (inst *PrototypeComponentHolder) GetContext() application.Context

func (*PrototypeComponentHolder) GetInfo

func (*PrototypeComponentHolder) GetInstance

func (*PrototypeComponentHolder) GetPrototype

func (inst *PrototypeComponentHolder) GetPrototype() lang.Object

func (*PrototypeComponentHolder) IsOriginalName

func (inst *PrototypeComponentHolder) IsOriginalName(name string) bool

func (*PrototypeComponentHolder) MakeChild

type RuntimeContextLoader

type RuntimeContextLoader struct {
	// contains filtered or unexported fields
}

RuntimeContextLoader 运行时上下文加载器

func (*RuntimeContextLoader) Load

Load 方法根据传入的配置加载运行时上下文

type SingletonComponentHolder

type SingletonComponentHolder struct {
	// contains filtered or unexported fields
}

func (*SingletonComponentHolder) GetContext

func (inst *SingletonComponentHolder) GetContext() application.Context

func (*SingletonComponentHolder) GetInfo

func (*SingletonComponentHolder) GetInstance

func (*SingletonComponentHolder) GetPrototype

func (inst *SingletonComponentHolder) GetPrototype() lang.Object

func (*SingletonComponentHolder) IsOriginalName

func (inst *SingletonComponentHolder) IsOriginalName(name string) bool

func (*SingletonComponentHolder) MakeChild

Jump to

Keyboard shortcuts

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