Documentation ¶
Index ¶
- Constants
- func GetImpl(sdId string, param interface{}) (interface{}, error)
- func GetImplWithProxy(sdId string, param interface{}) (interface{}, error)
- func NewSingletonAutowire(sp autowire.SDIDParser, pl autowire.ParamLoader, facade autowire.Autowire) autowire.Autowire
- func RegisterStructDescriptor(sd *autowire.StructDescriptor)
- type SingletonAutowire
Constants ¶
View Source
const Name = "singleton"
Variables ¶
This section is empty.
Functions ¶
func GetImplWithProxy ¶
func NewSingletonAutowire ¶
func NewSingletonAutowire(sp autowire.SDIDParser, pl autowire.ParamLoader, facade autowire.Autowire) autowire.Autowire
NewSingletonAutowire create a singleton autowire based autowire, e.g. grpc, base.facade can be re-write to outer autowire
func RegisterStructDescriptor ¶
func RegisterStructDescriptor(sd *autowire.StructDescriptor)
Types ¶
type SingletonAutowire ¶
type SingletonAutowire struct { base.AutowireBase // contains filtered or unexported fields }
func (*SingletonAutowire) CanBeEntrance ¶
func (s *SingletonAutowire) CanBeEntrance() bool
func (*SingletonAutowire) GetAllStructDescriptors ¶
func (s *SingletonAutowire) GetAllStructDescriptors() map[string]*autowire.StructDescriptor
GetAllStructDescriptors should be re-write by facade
func (*SingletonAutowire) IsSingleton ¶
func (s *SingletonAutowire) IsSingleton() bool
func (*SingletonAutowire) TagKey ¶
func (s *SingletonAutowire) TagKey() string
TagKey should be re-writed by facade autowire
Click to show internal directories.
Click to hide internal directories.