Documentation ¶
Overview ¶
Package factory provides hiboot factory interface
Package factory provides InstantiateFactory and ConfigurableFactory interface
Index ¶
Constants ¶
View Source
const ( // InstantiateFactoryName is the instance name of factory.instantiateFactory InstantiateFactoryName = "factory.instantiateFactory" // ConfigurableFactoryName is the instance name of factory.configurableFactory ConfigurableFactoryName = "factory.configurableFactory" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigurableFactory ¶ added in v0.5.4
type ConfigurableFactory interface { InstantiateFactory SystemConfiguration() *system.Configuration Configuration(name string) interface{} //Initialize(configurations cmap.ConcurrentMap) (err error) BuildSystemConfig() (systemConfig *system.Configuration, err error) Build(configs []*MetaData) }
ConfigurableFactory configurable factory interface
type Configuration ¶ added in v0.9.3
type Configuration interface { }
Configuration configuration interface
type Deps ¶ added in v0.9.3
type Deps struct {
// contains filtered or unexported fields
}
Deps the dependency mapping of configuration
func (*Deps) Get ¶ added in v0.9.3
Get get the dependencies mapping
type InstantiateFactory ¶ added in v0.5.4
type InstantiateFactory interface { Initialized() bool SetInstance(params ...interface{}) (err error) GetInstance(params ...interface{}) (retVal interface{}) GetInstances(name string) (retVal []interface{}) Items() map[string]interface{} AppendComponent(c ...interface{}) BuildComponents() (err error) CustomProperties() map[string]interface{} }
InstantiateFactory instantiate factory interface
Directories ¶
Path | Synopsis |
---|---|
Package autoconfigure implement ConfigurableFactory
|
Package autoconfigure implement ConfigurableFactory |
Package depends provides dependency resolver for factory
|
Package depends provides dependency resolver for factory |
bar
Package bar is the test package for package depends
|
Package bar is the test package for package depends |
fake
Package fake is the test package for package depends
|
Package fake is the test package for package depends |
foo
Package foo is the test package for package depends
|
Package foo is the test package for package depends |
Package instantiate implement InstantiateFactory
|
Package instantiate implement InstantiateFactory |
Click to show internal directories.
Click to hide internal directories.