di/registry/registry.go
crusader 110a65c05a ing
2017-12-03 19:55:10 +09:00

12 lines
264 B
Go

package registry
import "reflect"
type ComponentRegistry interface {
RegisterType(t reflect.Type, name string) error
RegisterFactory(i interface{}) error
GetInstance(t reflect.Type) (interface{}, error)
GetInstanceByName(name string) (interface{}, error)
}