GruInject
ProGru
$0.0
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
10/03(2024) |
0.0 |
11/01(2024) |
0.0 |
Jump AssetStore
GruInject is a lightweight DI framework designed for quick prototyping and fast setups. Simple yet flexible, it should handle production use if needed, though it's built with prototyping in mind.Dependency Injection (DI) in general, improves code modularity, testability, and maintainability by decoupling components. It allows for easy swapping of dependencies, promotes cleaner architecture, and simplifies unit testing through mockable dependencies.GruInject is a lightweight and flexible dependency injection framework ideal for rapid prototyping but capable of handling production needs. It simplifies dependency management with the following key features:Attribute Service Declaration:AutoSpawn: Automatically create service and inject dependencies.RegisterAsSingleInstance: Register a singleton service.RegisterInstance: Create a new instance each time it is requested.Flexible Injection: Inject dependencies through attributes for variables, properties, methods, and constructors using the Inject attribute.MonoBehaviour Support: Seamless dependency injection for Unity MonoBehaviours, requiring inheritance from a special base class provided by GruInject.Test-Friendly Tools: Built-in support for mocking dependencies, making unit testing easier and more efficient.GruInject is designed for fast setups while offering the flexibility and power to scale with your project.