Tarject - Dependency Injection Framework

FREE
Publisher tariksavas
File size 63.95kB
Number of files 80
Latest version 1.0.3
Latest release date 2024-07-31 02:25:13
First release date 2024-07-31 02:25:13
Supported Unity versions 2018.4.2 or higher

What is dependency injection?

Dependency injection (DI) is a software design pattern based on the principle of injecting dependencies from the outside rather than directly creating them within objects. This pattern facilitates modularity, testability, and management of dependencies in software development. DI makes the management of dependencies more flexible and sustainable.


How to use Tarject?

After importing this Framework into your project, you can read README.md document to get information about how to use it and examine the Samples folder for sample uses. For more details see the GitHub


Key Features

  • Project, Scene and GameObject Context Structures
  • Object and GameObject Installers
  • Binding Types (Class, Instance, FromHierarchy and Factory)
  • Binding Properties (ToInterface, WithId and Lazy)
  • Inject Attribute can be applied to Field, Property, Method, Constructor and Parameter
  • MonoInjecter and SceneInjecter for automatic injection
  • GameObject and Object Factory Structures
  • Unity Frame Action Interfaces (IInitializable, IFixedUpdatable, IUpdatable, ILateUpdatable, ILateDisposable)
  • SignalBus
  • TestFramework (For now there is only UnitTest support with TarjectUnitTestFixture)
  • 100% test coverage
  • ReflectionCache for minimum reflection use
  • Detailed sample scenario in the Sample folder

Feel free to contact for support or feedback!

Website | Discord