MCPcopy Create free account
hub / github.com/esengine/esengine / factory

Function factory

packages/core/src/Core/DI/Decorators.ts:322–322  ·  view source on GitHub ↗
(c: ServiceContainer)

Source from the content-addressed store, hash-verified

320
321 // 创建工厂函数,使用createInstance自动解析依赖
322 const factory = (c: ServiceContainer) => createInstance(serviceType, c);
323
324 // 注册到容器
325 if (singleton) {

Callers 5

_handleSpawnMethod · 0.85
getOrAddComponentFunction · 0.85
withFactoryMethod · 0.85
createLoaderMethod · 0.85
withFactoryMethod · 0.85

Calls 1

createInstanceFunction · 0.85

Tested by

no test coverage detected