{"id":18736822,"url":"https://github.com/zoul/factory","last_synced_at":"2025-04-12T19:31:58.330Z","repository":{"id":1102479,"uuid":"966297","full_name":"zoul/Factory","owner":"zoul","description":"Experimental dependency injection container for Objective-C.","archived":true,"fork":false,"pushed_at":"2011-02-10T08:45:26.000Z","size":165,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T00:34:43.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/zoul/Factory","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-06T11:56:00.000Z","updated_at":"2024-07-17T17:41:19.000Z","dependencies_parsed_at":"2022-08-16T12:00:48.643Z","dependency_job_id":null,"html_url":"https://github.com/zoul/Factory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoul%2FFactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoul%2FFactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoul%2FFactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoul%2FFactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoul","download_url":"https://codeload.github.com/zoul/Factory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248621178,"owners_count":21134766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T15:22:38.612Z","updated_at":"2025-04-12T19:31:58.032Z","avatar_url":"https://github.com/zoul.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"About\n-----\n\nFactory is a very simple dependency injection container for Objective-C.\nIt can assemble objects graphs for you so that you don’t have to mess with\nthe dependency management yourself:\n\n    [factory addComponent:[Engine class]];\n    [factory addComponent:[Car class]];\n    Car *car = [factory assemble:[Car class]];\n    STAssertNotNil(car.engine, @\"Engine automatically built in.\");\n\nFor more examples see the [Tests].\n\n[Tests]: http://github.com/zoul/Factory/tree/master/Demo/Tests/\n\nNotes\n-----\n\n* Lazy-wired properties would be interesting\n* Instance sealing to prevent changing deps after assembling?\n* Detect dependency loops\n\nLinks\n-----\n\n* [Inversion of Control Containers][fowler] by Martin Fowler\n* [Dependency Injection][hevery] by Miško Hevery\n* [Singletons are Pathological Liars][liars] by Miško Hevery\n\n[fowler]: http://martinfowler.com/articles/injection.html\n[hevery]: http://misko.hevery.com/2008/11/11/clean-code-talks-dependency-injection/\n[liars]: http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoul%2Ffactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoul%2Ffactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoul%2Ffactory/lists"}