Documentation ¶
Index ¶
- Constants
- Variables
- type ConfigurableFactory
- func (f *ConfigurableFactory) Build(configs [][]interface{})
- func (f *ConfigurableFactory) BuildSystemConfig(configType interface{}) (err error)
- func (f *ConfigurableFactory) Configuration(name string) interface{}
- func (f *ConfigurableFactory) Initialize(configurations cmap.ConcurrentMap) (err error)
- func (f *ConfigurableFactory) Instantiate(configuration interface{}) (err error)
- func (f *ConfigurableFactory) InstantiateByName(configuration interface{}, name string) (inst interface{}, err error)
- func (f *ConfigurableFactory) InstantiateMethod(configuration interface{}, method reflect.Method, methodName string) (inst interface{}, err error)
- func (f *ConfigurableFactory) SystemConfiguration() *system.Configuration
Constants ¶
View Source
const (
System = "system"
)
Variables ¶
View Source
var ( InvalidMethodError = errors.New("[factory] method is invalid") FactoryCannotBeNilError = errors.New("[factory] InstantiateFactory can not be nil") FactoryIsNotInitializedError = errors.New("[factory] InstantiateFactory is not initialized") InvalidObjectTypeError = errors.New("[factory] invalid Configuration type, one of app.Configuration, app.PreConfiguration, or app.PostConfiguration need to be embedded") ConfigurationNameIsTakenError = errors.New("[factory] configuration name is already taken") ComponentNameIsTakenError = errors.New("[factory] component name is already taken") )
Functions ¶
This section is empty.
Types ¶
type ConfigurableFactory ¶
type ConfigurableFactory struct { *instantiate.InstantiateFactory // contains filtered or unexported fields }
func (*ConfigurableFactory) Build ¶
func (f *ConfigurableFactory) Build(configs [][]interface{})
func (*ConfigurableFactory) BuildSystemConfig ¶
func (f *ConfigurableFactory) BuildSystemConfig(configType interface{}) (err error)
func (*ConfigurableFactory) Configuration ¶
func (f *ConfigurableFactory) Configuration(name string) interface{}
func (*ConfigurableFactory) Initialize ¶
func (f *ConfigurableFactory) Initialize(configurations cmap.ConcurrentMap) (err error)
func (*ConfigurableFactory) Instantiate ¶
func (f *ConfigurableFactory) Instantiate(configuration interface{}) (err error)
func (*ConfigurableFactory) InstantiateByName ¶ added in v0.5.3
func (f *ConfigurableFactory) InstantiateByName(configuration interface{}, name string) (inst interface{}, err error)
func (*ConfigurableFactory) InstantiateMethod ¶ added in v0.5.3
func (f *ConfigurableFactory) InstantiateMethod(configuration interface{}, method reflect.Method, methodName string) (inst interface{}, err error)
func (*ConfigurableFactory) SystemConfiguration ¶
func (f *ConfigurableFactory) SystemConfiguration() *system.Configuration
Click to show internal directories.
Click to hide internal directories.