tarject
  • Documentation
    • Introduction
    • Installation
    • How to Contribute
    • How to Use
      • Context
        • ProjectContext
        • SceneContext
        • GameObjectContext
      • Installer
        • GameObjectInstaller
        • ObjectInstaller
      • Binding Methods
        • Bind
        • BindFromInstance
        • BindFromHierarchy
        • BindFactory
      • Binding Options
        • ToInterface
        • WithId
        • Lazy
      • Injecter
      • Factory
        • SeparatedGameObjectFactory
        • SeparatedObjectFactory
      • Interfaces
      • Signal Management
      • Test Framework
Powered by GitBook
On this page
  1. Documentation
  2. How to Use

Factory

Objects can be created with Factory to assign dependencies and initialize them with parameters. Whichever container the Factory is binded, the dependencies of the created objects are injected from that container. A factory class is defined for each factorable object. There are 2 different base factory classes that can be inherited.

PreviousInjecterNextSeparatedGameObjectFactory

Last updated 5 months ago