Documentation
¶
Index ¶
- func CreateInstance(typ goo.Type, args []interface{}) (interface{}, error)
- type ConfigurablePeaFactory
- type DefaultPeaDefinitionRegistry
- func (registry *DefaultPeaDefinitionRegistry) ContainsPeaDefinition(peaName string) bool
- func (registry *DefaultPeaDefinitionRegistry) GetPeaDefinition(peaName string) PeaDefinition
- func (registry *DefaultPeaDefinitionRegistry) GetPeaDefinitionCount() int
- func (registry *DefaultPeaDefinitionRegistry) GetPeaDefinitionNames() []string
- func (registry *DefaultPeaDefinitionRegistry) GetPeaNamesByType(typ goo.Type) []string
- func (registry *DefaultPeaDefinitionRegistry) RegisterPeaDefinition(peaName string, definition PeaDefinition)
- func (registry *DefaultPeaDefinitionRegistry) RemovePeaDefinition(peaName string)
- type DefaultPeaFactory
- func (factory DefaultPeaFactory) AddPeaProcessor(processor PeaProcessor) error
- func (factory DefaultPeaFactory) ContainsPea(name string) bool
- func (factory DefaultPeaFactory) ExcludeType(typ goo.Type) error
- func (factory DefaultPeaFactory) GetPea(name string) (interface{}, error)
- func (factory DefaultPeaFactory) GetPeaByNameAndArgs(name string, args ...interface{}) (interface{}, error)
- func (factory DefaultPeaFactory) GetPeaByNameAndType(name string, typ goo.Type) (interface{}, error)
- func (factory DefaultPeaFactory) GetPeaByType(typ goo.Type) (interface{}, error)
- func (factory DefaultPeaFactory) GetPeaProcessors() []PeaProcessor
- func (factory DefaultPeaFactory) GetPeaProcessorsCount() int
- func (factory DefaultPeaFactory) PreInstantiateSharedPeas()
- func (factory DefaultPeaFactory) RegisterTypeAsOnlyReadable(typ goo.Type) error
- type DefaultSharedPeaRegistry
- func (registry *DefaultSharedPeaRegistry) ContainsSharedPea(peaName string) bool
- func (registry *DefaultSharedPeaRegistry) GetSharedPea(peaName string) interface{}
- func (registry *DefaultSharedPeaRegistry) GetSharedPeaCount() int
- func (registry *DefaultSharedPeaRegistry) GetSharedPeaNames() []string
- func (registry *DefaultSharedPeaRegistry) GetSharedPeaType(requiredType goo.Type) interface{}
- func (registry *DefaultSharedPeaRegistry) GetSharedPeaWithObjectFunc(peaName string, objFunc GetObjectFunc) (interface{}, error)
- func (registry *DefaultSharedPeaRegistry) GetSharedPeasByType(requiredType goo.Type) []interface{}
- func (registry *DefaultSharedPeaRegistry) RegisterSharedPea(peaName string, sharedObject interface{}) error
- type GetObjectFunc
- type PeaDefinition
- type PeaDefinitionHolder
- type PeaDefinitionRegistry
- type PeaDefinitionRegistryProcessor
- type PeaFactory
- type PeaFactoryProcessor
- type PeaInPreparationError
- type PeaInitializer
- type PeaNameGenerator
- type PeaPreparationError
- type PeaProcessor
- type PeaProcessors
- type PeaScope
- type SharedPeaRegistry
- type SimplePeaDefinition
- type SimplePeaDefinitionOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateInstance ¶
Types ¶
type ConfigurablePeaFactory ¶
type ConfigurablePeaFactory interface {
SharedPeaRegistry
PeaFactory
RegisterTypeAsOnlyReadable(typ goo.Type) error
ExcludeType(typ goo.Type) error
AddPeaProcessor(processor PeaProcessor) error
GetPeaProcessors() []PeaProcessor
GetPeaProcessorsCount() int
}
type DefaultPeaDefinitionRegistry ¶
type DefaultPeaDefinitionRegistry struct {
// contains filtered or unexported fields
}
func NewDefaultPeaDefinitionRegistry ¶
func NewDefaultPeaDefinitionRegistry() *DefaultPeaDefinitionRegistry
func (*DefaultPeaDefinitionRegistry) ContainsPeaDefinition ¶
func (registry *DefaultPeaDefinitionRegistry) ContainsPeaDefinition(peaName string) bool
func (*DefaultPeaDefinitionRegistry) GetPeaDefinition ¶
func (registry *DefaultPeaDefinitionRegistry) GetPeaDefinition(peaName string) PeaDefinition
func (*DefaultPeaDefinitionRegistry) GetPeaDefinitionCount ¶
func (registry *DefaultPeaDefinitionRegistry) GetPeaDefinitionCount() int
func (*DefaultPeaDefinitionRegistry) GetPeaDefinitionNames ¶
func (registry *DefaultPeaDefinitionRegistry) GetPeaDefinitionNames() []string
func (*DefaultPeaDefinitionRegistry) GetPeaNamesByType ¶
func (registry *DefaultPeaDefinitionRegistry) GetPeaNamesByType(typ goo.Type) []string
func (*DefaultPeaDefinitionRegistry) RegisterPeaDefinition ¶
func (registry *DefaultPeaDefinitionRegistry) RegisterPeaDefinition(peaName string, definition PeaDefinition)
func (*DefaultPeaDefinitionRegistry) RemovePeaDefinition ¶
func (registry *DefaultPeaDefinitionRegistry) RemovePeaDefinition(peaName string)
type DefaultPeaFactory ¶
type DefaultPeaFactory struct {
PeaDefinitionRegistry
// contains filtered or unexported fields
}
func NewDefaultPeaFactory ¶
func NewDefaultPeaFactory() DefaultPeaFactory
func (DefaultPeaFactory) AddPeaProcessor ¶
func (factory DefaultPeaFactory) AddPeaProcessor(processor PeaProcessor) error
Pea Processors
func (DefaultPeaFactory) ContainsPea ¶
func (factory DefaultPeaFactory) ContainsPea(name string) bool
func (DefaultPeaFactory) ExcludeType ¶
func (factory DefaultPeaFactory) ExcludeType(typ goo.Type) error
func (DefaultPeaFactory) GetPea ¶
func (factory DefaultPeaFactory) GetPea(name string) (interface{}, error)
func (DefaultPeaFactory) GetPeaByNameAndArgs ¶
func (factory DefaultPeaFactory) GetPeaByNameAndArgs(name string, args ...interface{}) (interface{}, error)
func (DefaultPeaFactory) GetPeaByNameAndType ¶
func (factory DefaultPeaFactory) GetPeaByNameAndType(name string, typ goo.Type) (interface{}, error)
func (DefaultPeaFactory) GetPeaByType ¶
func (factory DefaultPeaFactory) GetPeaByType(typ goo.Type) (interface{}, error)
func (DefaultPeaFactory) GetPeaProcessors ¶
func (factory DefaultPeaFactory) GetPeaProcessors() []PeaProcessor
func (DefaultPeaFactory) GetPeaProcessorsCount ¶
func (factory DefaultPeaFactory) GetPeaProcessorsCount() int
func (DefaultPeaFactory) PreInstantiateSharedPeas ¶
func (factory DefaultPeaFactory) PreInstantiateSharedPeas()
func (DefaultPeaFactory) RegisterTypeAsOnlyReadable ¶
func (factory DefaultPeaFactory) RegisterTypeAsOnlyReadable(typ goo.Type) error
type DefaultSharedPeaRegistry ¶
type DefaultSharedPeaRegistry struct {
// contains filtered or unexported fields
}
func NewDefaultSharedPeaRegistry ¶
func NewDefaultSharedPeaRegistry() *DefaultSharedPeaRegistry
func (*DefaultSharedPeaRegistry) ContainsSharedPea ¶
func (registry *DefaultSharedPeaRegistry) ContainsSharedPea(peaName string) bool
func (*DefaultSharedPeaRegistry) GetSharedPea ¶
func (registry *DefaultSharedPeaRegistry) GetSharedPea(peaName string) interface{}
func (*DefaultSharedPeaRegistry) GetSharedPeaCount ¶
func (registry *DefaultSharedPeaRegistry) GetSharedPeaCount() int
func (*DefaultSharedPeaRegistry) GetSharedPeaNames ¶
func (registry *DefaultSharedPeaRegistry) GetSharedPeaNames() []string
func (*DefaultSharedPeaRegistry) GetSharedPeaType ¶
func (registry *DefaultSharedPeaRegistry) GetSharedPeaType(requiredType goo.Type) interface{}
func (*DefaultSharedPeaRegistry) GetSharedPeaWithObjectFunc ¶
func (registry *DefaultSharedPeaRegistry) GetSharedPeaWithObjectFunc(peaName string, objFunc GetObjectFunc) (interface{}, error)
func (*DefaultSharedPeaRegistry) GetSharedPeasByType ¶
func (registry *DefaultSharedPeaRegistry) GetSharedPeasByType(requiredType goo.Type) []interface{}
func (*DefaultSharedPeaRegistry) RegisterSharedPea ¶
func (registry *DefaultSharedPeaRegistry) RegisterSharedPea(peaName string, sharedObject interface{}) error
type GetObjectFunc ¶
type GetObjectFunc func() (interface{}, error)
type PeaDefinition ¶
type PeaDefinitionHolder ¶
type PeaDefinitionHolder struct {
// contains filtered or unexported fields
}
func NewPeaDefinitionHolder ¶
func NewPeaDefinitionHolder(peaName string, peaDefinition PeaDefinition) *PeaDefinitionHolder
func (*PeaDefinitionHolder) GetPeaDefinition ¶
func (holder *PeaDefinitionHolder) GetPeaDefinition() PeaDefinition
func (*PeaDefinitionHolder) GetPeaName ¶
func (holder *PeaDefinitionHolder) GetPeaName() string
type PeaDefinitionRegistry ¶
type PeaDefinitionRegistry interface {
RegisterPeaDefinition(peaName string, definition PeaDefinition)
RemovePeaDefinition(peaName string)
ContainsPeaDefinition(peaName string) bool
GetPeaDefinition(peaName string) PeaDefinition
GetPeaDefinitionNames() []string
GetPeaDefinitionCount() int
GetPeaNamesByType(typ goo.Type) []string
}
type PeaDefinitionRegistryProcessor ¶
type PeaDefinitionRegistryProcessor interface {
AfterPeaDefinitionRegistryInitialization(registry PeaDefinitionRegistry)
}
type PeaFactory ¶
type PeaFactoryProcessor ¶
type PeaFactoryProcessor interface {
AfterPeaFactoryInitialization(factory ConfigurablePeaFactory)
}
type PeaInPreparationError ¶
type PeaInPreparationError struct {
PeaPreparationError
}
func NewPeaInPreparationError ¶
func NewPeaInPreparationError(peaName string) PeaInPreparationError
type PeaInitializer ¶
type PeaInitializer interface {
InitializePea() error
}
type PeaNameGenerator ¶
type PeaNameGenerator interface {
GenerateName(peaDefinition PeaDefinition) string
}
type PeaPreparationError ¶
type PeaPreparationError struct {
// contains filtered or unexported fields
}
func NewPeaPreparationError ¶
func NewPeaPreparationError(peaName string, message string) PeaPreparationError
func (PeaPreparationError) Error ¶
func (error PeaPreparationError) Error() string
func (PeaPreparationError) GetMessage ¶
func (error PeaPreparationError) GetMessage() string
func (PeaPreparationError) GetPeaName ¶
func (error PeaPreparationError) GetPeaName() string
type PeaProcessor ¶
type PeaProcessors ¶
type PeaProcessors struct {
// contains filtered or unexported fields
}
func NewPeaProcessors ¶
func NewPeaProcessors() *PeaProcessors
func (*PeaProcessors) AddPeaProcessor ¶
func (p *PeaProcessors) AddPeaProcessor(processor PeaProcessor) error
func (*PeaProcessors) GetProcessors ¶
func (p *PeaProcessors) GetProcessors() []PeaProcessor
func (*PeaProcessors) GetProcessorsCount ¶
func (p *PeaProcessors) GetProcessorsCount() int
func (*PeaProcessors) RemoveAllProcessor ¶
func (p *PeaProcessors) RemoveAllProcessor()
func (*PeaProcessors) RemoveProcessor ¶
func (p *PeaProcessors) RemoveProcessor(processor PeaProcessor)
type SharedPeaRegistry ¶
type SharedPeaRegistry interface {
}
type SimplePeaDefinition ¶
type SimplePeaDefinition struct {
// contains filtered or unexported fields
}
func NewSimplePeaDefinition ¶
func NewSimplePeaDefinition(typ goo.Type, options ...SimplePeaDefinitionOption) *SimplePeaDefinition
func (*SimplePeaDefinition) GetPeaType ¶
func (def *SimplePeaDefinition) GetPeaType() goo.Type
func (*SimplePeaDefinition) GetScope ¶
func (def *SimplePeaDefinition) GetScope() PeaScope
func (*SimplePeaDefinition) GetTypeName ¶
func (def *SimplePeaDefinition) GetTypeName() string
type SimplePeaDefinitionOption ¶
type SimplePeaDefinitionOption func(definition *SimplePeaDefinition)
func WithScope ¶
func WithScope(scope PeaScope) SimplePeaDefinitionOption
Click to show internal directories.
Click to hide internal directories.