Documentation
¶
Index ¶
Constants ¶
View Source
const ( WIRED = "wired" VALUE = "value" )
View Source
const ( SINGLETON = "singleton" CONSTRUCT = "Construct" INIT = "Init" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendOption ¶
type AppendOption func(*Ioc)
type Bean ¶
type Bean struct {
//name of bean, use for get instance by name
Name string
//singleton or prototype
Scope string
//abstract type of bean
Abstract interface{}
//concrete type of bean
Concrete interface{}
//construct function of instance
//execute when instance be build
Construct string
//function execute after instance be build
InitFunc string
// contains filtered or unexported fields
}
func (*Bean) GetAbstractType ¶
func (*Bean) GetConcreteType ¶
func (*Bean) SetAbstractType ¶
func (*Bean) SetConcreteType ¶
type IBuilder ¶
type IBuilder interface {
// contains filtered or unexported methods
}
func DefaultBuilder ¶
func DefaultBuilder() IBuilder
Click to show internal directories.
Click to hide internal directories.