Lines Matching refs:factory
181 factory ModuleFactory member
292 factory SingletonFactory member
401 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {
405 c.moduleFactories[name] = factory
421 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) {
429 factory: factory,
430 singleton: factory(),
443 func (c *Context) RegisterPreSingletonType(name string, factory SingletonFactory) {
451 factory: factory,
452 singleton: factory(),
1211 newLogicModule, newProperties := origModule.factory()
1352 func newModule(factory ModuleFactory) *moduleInfo {
1353 logicModule, properties := factory()
1357 factory: factory,
1368 factory, ok := moduleFactories[moduleDef.Type]
1370 factory, ok = scopedModuleFactories[moduleDef.Type]
1385 module := newModule(factory)
3009 for moduleType, factory := range c.moduleFactories {
3010 _, ret[moduleType] = factory()
3555 factoryFunc := runtime.FuncForPC(reflect.ValueOf(module.factory).Pointer())
3610 factory := info.factory
3611 factoryFunc := runtime.FuncForPC(reflect.ValueOf(factory).Pointer())