bean

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBeanName

func GetBeanName(b Bean) string

func GetName added in v1.2.8

func GetName(b interface{}) string

Types

type Bean

type Bean interface {
	Bean() string
	Init() error
	Destroy() error
}

type Component added in v1.1.8

type Component struct {
	BeanName string
}

Component default bean impl

func (*Component) Bean added in v1.1.8

func (r *Component) Bean() string

func (*Component) Destroy added in v1.3.8

func (r *Component) Destroy() error

func (*Component) Init added in v1.3.8

func (r *Component) Init() error

type Components

type Components []Bean

type FactoryBean

type FactoryBean interface {
	Bean
	GetBean() (Bean, error)
	GetBeanType() reflect.Type
	IsSingleton() bool
}

Jump to

Keyboard shortcuts

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