autoconfigure

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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