factory

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package factory provides hiboot factory interface

Package factory provides InstantiateFactory and ConfigurableFactory interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurableFactory added in v0.5.4

type ConfigurableFactory interface {
	InstantiateFactory
	SystemConfiguration() *system.Configuration
	Configuration(name string) interface{}
}

type Factory

type Factory interface{}

type InstantiateFactory added in v0.5.4

type InstantiateFactory interface {
	Initialized() bool
	SetInstance(name string, instance interface{}) (err error)
	GetInstance(name string) (retVal interface{})
	GetInstances(name string) (retVal []interface{})
	Items() map[string]interface{}
	AppendComponent(c ...interface{})
}

type MetaData added in v0.9.0

type MetaData struct {
	Kind      string
	Name      string
	ShortName string
	TypeName  string
	PkgName   string
	Context   interface{}
	Object    interface{}
	Type      reflect.Type
	Depends   []string
	ExtDep    []*MetaData
}

MetaData is the injectable object meta data

func NewMetaData added in v0.9.0

func NewMetaData(params ...interface{}) *MetaData

NewMetaData create new meta data

Directories

Path Synopsis
Package autoconfigure implement ConfigurableFactory
Package autoconfigure implement ConfigurableFactory
bar
foo
Package instantiate implement InstantiateFactory
Package instantiate implement InstantiateFactory

Jump to

Keyboard shortcuts

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