{"id":20347933,"url":"https://github.com/quynhchi1009/factorymethod","last_synced_at":"2025-07-27T20:04:37.239Z","repository":{"id":150708779,"uuid":"574167639","full_name":"quynhchi1009/FactoryMethod","owner":"quynhchi1009","description":"Factory Method is a creational design pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.","archived":false,"fork":false,"pushed_at":"2022-12-04T16:32:38.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T16:14:34.392Z","etag":null,"topics":["design-patterns","factory-method","factory-method-pattern"],"latest_commit_sha":null,"homepage":"","language":"Java","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/quynhchi1009.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-04T16:28:45.000Z","updated_at":"2022-12-29T10:09:40.000Z","dependencies_parsed_at":"2023-04-23T07:06:36.611Z","dependency_job_id":null,"html_url":"https://github.com/quynhchi1009/FactoryMethod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/quynhchi1009/FactoryMethod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quynhchi1009%2FFactoryMethod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quynhchi1009%2FFactoryMethod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quynhchi1009%2FFactoryMethod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quynhchi1009%2FFactoryMethod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quynhchi1009","download_url":"https://codeload.github.com/quynhchi1009/FactoryMethod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quynhchi1009%2FFactoryMethod/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267417646,"owners_count":24083838,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["design-patterns","factory-method","factory-method-pattern"],"created_at":"2024-11-14T22:18:37.550Z","updated_at":"2025-07-27T20:04:37.215Z","avatar_url":"https://github.com/quynhchi1009.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FactoryMethod\nFactory Method is a creational design pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.\n\n1. Replace direct object construction calls (using the new operator) with calls to a special factory method. \n2. Limitation: subclasses may return different types of products \u003c=\u003e these products have a common base class or interface.\n3. Use when:\n  - don’t know beforehand the exact types and dependencies of the objects your code should work with\n  - want to provide users of your library or framework with a way to extend its internal components.\n  - want to save system resources by reusing existing objects instead of rebuilding them each time.\n \n \nSource: https://refactoring.guru/design-patterns/factory-method\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquynhchi1009%2Ffactorymethod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquynhchi1009%2Ffactorymethod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquynhchi1009%2Ffactorymethod/lists"}