Documentation ¶
Index ¶
- type ComponentFactoryPostProcessor
- type ComponentPostProcessor
- type DefinitionRegistry
- type DefinitionRegistryPostProcessor
- type DestructionAwareComponentPostProcessor
- type Factory
- type FuncSingletonFactory
- type InstantiationAwareComponentPostProcessor
- type Option
- type SingletonComponentRegistry
- type SingletonFactory
- type SingletonRegistry
- type SmartInstantiationAwareBeanPostProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentPostProcessor ¶
type DefinitionRegistry ¶
type DefinitionRegistry interface { RegisterMeta(m *component_definition.Meta) GetMetas(opts ...Option) []*component_definition.Meta GetMetaByName(name string) *component_definition.Meta GetMetaOrRegister(name string, component any) *component_definition.Meta }
type DefinitionRegistryPostProcessor ¶
type DefinitionRegistryPostProcessor interface {
PostProcessDefinitionRegistry(registry DefinitionRegistry, component any, componentName string) error
}
type Factory ¶
type Factory interface { GetRegisteredComponents() map[string]any GetDefinitionRegistryPostProcessors() []DefinitionRegistryPostProcessor SetRegistry(r SingletonRegistry) SetConfigure(c configure.Configure) PrepareComponents() error Refresh() error GetComponents(opts ...Option) ([]any, error) GetComponentByName(name string) (any, error) GetConfigure() configure.Configure GetDefinitionRegistry() DefinitionRegistry }
type FuncSingletonFactory ¶
type FuncSingletonFactory func() (*component_definition.Meta, error)
func (FuncSingletonFactory) GetComponent ¶
func (d FuncSingletonFactory) GetComponent() (*component_definition.Meta, error)
type InstantiationAwareComponentPostProcessor ¶
type InstantiationAwareComponentPostProcessor interface { ComponentPostProcessor PostProcessBeforeInstantiation(m *component_definition.Meta, componentName string) (any, error) PostProcessAfterInstantiation(component any, componentName string) (bool, error) PostProcessProperties(properties []*component_definition.Property, component any, componentName string) ([]*component_definition.Property, error) }
type Option ¶
type Option func(m *component_definition.Meta) bool
func FuncNameAndResult ¶
func InterfaceType ¶
type SingletonComponentRegistry ¶
type SingletonComponentRegistry interface { AddSingleton(name string, meta *component_definition.Meta) AddSingletonFactory(name string, method SingletonFactory) GetSingleton(name string, allowEarlyReference bool) (*component_definition.Meta, error) RemoveSingleton(name string) GetSingletonOrCreateByFactory(name string, factory SingletonFactory) (*component_definition.Meta, error) IsSingletonCurrentlyInCreation(name string) bool }
type SingletonFactory ¶
type SingletonFactory interface {
GetComponent() (*component_definition.Meta, error)
}
type SingletonRegistry ¶
type SmartInstantiationAwareBeanPostProcessor ¶
type SmartInstantiationAwareBeanPostProcessor interface { InstantiationAwareComponentPostProcessor GetEarlyBeanReference(component any, componentName string) (any, error) }
Click to show internal directories.
Click to hide internal directories.