Class: WorkOrderServiceFactory

WorkOrderServiceFactory

Factory class for creating Work Order service instances. Implements the Factory pattern for dependency injection and object creation. Centralizes the creation of complex object graphs.

new WorkOrderServiceFactory()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/factories/WorkOrderServiceFactory.ts, line 6

Methods

staticWorkOrderServiceFactory.createService(isProduction)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/factories/WorkOrderServiceFactory.ts, line 25

Creates a WorkOrderService instance with all dependencies properly injected.

Name Type Default Description
isProduction false

Whether running in production environment

Returns:
Configured WorkOrderService instance

staticWorkOrderServiceFactory.getInstance(isProduction)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/factories/WorkOrderServiceFactory.ts, line 38

Gets a singleton instance of WorkOrderService. Implements the Singleton pattern for shared service instance.

Name Type Default Description
isProduction false

Whether running in production environment

Returns:
Singleton WorkOrderService instance

staticWorkOrderServiceFactory.resetInstance()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/factories/WorkOrderServiceFactory.ts, line 49

Resets the singleton instance. Useful for testing or when configuration changes.