Lines Matching refs:factory
244 factory ModuleFactory member
366 factory SingletonFactory member
476 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {
480 c.moduleFactories[name] = factory
496 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) {
504 factory: factory,
505 singleton: factory(),
518 func (c *Context) RegisterPreSingletonType(name string, factory SingletonFactory) {
526 factory: factory,
527 singleton: factory(),
1290 newLogicModule, newProperties := origModule.factory()
1448 func newModule(factory ModuleFactory) *moduleInfo {
1449 logicModule, properties := factory()
1453 factory: factory,
1464 factory, ok := moduleFactories[moduleDef.Type]
1466 factory, ok = scopedModuleFactories[moduleDef.Type]
1481 module := newModule(factory)
3395 for moduleType, factory := range c.moduleFactories {
3396 _, ret[moduleType] = factory()
3957 factoryFunc := runtime.FuncForPC(reflect.ValueOf(module.factory).Pointer())
4012 factory := info.factory
4013 factoryFunc := runtime.FuncForPC(reflect.ValueOf(factory).Pointer())