{"id":16778102,"url":"https://github.com/dgf/dimpl","last_synced_at":"2026-01-02T18:34:40.382Z","repository":{"id":144958901,"uuid":"147808050","full_name":"dgf/dimpl","owner":"dgf","description":"simple Java class context and factory for dependency injection of implementations","archived":false,"fork":false,"pushed_at":"2018-09-07T11:22:20.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T06:11:29.541Z","etag":null,"topics":["aplatanao","dependency","injection","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-09-07T10:20:27.000Z","updated_at":"2018-09-07T11:22:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"21f18838-3bf4-4bc8-ae03-49d598721e0d","html_url":"https://github.com/dgf/dimpl","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/dgf%2Fdimpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgf%2Fdimpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgf%2Fdimpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgf%2Fdimpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgf","download_url":"https://codeload.github.com/dgf/dimpl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918643,"owners_count":20368746,"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":["aplatanao","dependency","injection","java"],"created_at":"2024-10-13T07:26:52.050Z","updated_at":"2026-01-02T18:34:40.356Z","avatar_url":"https://github.com/dgf.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dimpl - simple Java class context and factory\n\nThis [DI](https://en.wikipedia.org/wiki/Dependency_injection) approach is only useful for dependency injection of concrete implementations.\n\nThere are no plans to support interfaces or annotations at all.\n\n# Example usage\n\na simple component\n\n```java\npublic class Component {\n    public String toString() {\n        return \"dependency\";\n    }\n}\n```\n\nthe example the needs a component injection\n\n```java\npublic class Example {\n    private Component component;\n\n    public Example(Component component) {\n        this.component = component;\n    }\n\n    public String toString() {\n        return \"example \" + component;\n    }\n}\n```\n\nbuild context and retrieve the example dependency\n\n```java\nimport org.aplatanao.dimpl.Context;\n\npublic class Main {\n\n    public static void main(String[] args) {\n        Example example = new Context().get(Example.class);\n        System.out.println(example); // outputs: \"example dependency\"\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgf%2Fdimpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgf%2Fdimpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgf%2Fdimpl/lists"}