Skip to content
/ Factory Public

Experimental dependency injection container for Objective-C.

Notifications You must be signed in to change notification settings

zoul/Factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Factory is a very simple dependency injection container for Objective-C. It can assemble objects graphs for you so that you don’t have to mess with the dependency management yourself:

[factory addComponent:[Engine class]];
[factory addComponent:[Car class]];
Car *car = [factory assemble:[Car class]];
STAssertNotNil(car.engine, @"Engine automatically built in.");

For more examples see the Tests.

Notes

  • Lazy-wired properties would be interesting
  • Instance sealing to prevent changing deps after assembling?
  • Detect dependency loops

Links

About

Experimental dependency injection container for Objective-C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published