{"id":15752381,"url":"https://github.com/mhewedy/conditional-on-module","last_synced_at":"2025-07-17T00:07:34.216Z","repository":{"id":189535446,"uuid":"680854000","full_name":"mhewedy/conditional-on-module","owner":"mhewedy","description":"Library to implement Conditional on module","archived":false,"fork":false,"pushed_at":"2023-08-20T16:17:47.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T07:31:16.814Z","etag":null,"topics":["spring","spring-boot"],"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/mhewedy.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}},"created_at":"2023-08-20T16:12:08.000Z","updated_at":"2023-08-20T16:18:28.000Z","dependencies_parsed_at":"2023-08-20T17:54:10.464Z","dependency_job_id":null,"html_url":"https://github.com/mhewedy/conditional-on-module","commit_stats":null,"previous_names":["mhewedy/conditional-on-module"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mhewedy/conditional-on-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhewedy%2Fconditional-on-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhewedy%2Fconditional-on-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhewedy%2Fconditional-on-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhewedy%2Fconditional-on-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhewedy","download_url":"https://codeload.github.com/mhewedy/conditional-on-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhewedy%2Fconditional-on-module/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265553456,"owners_count":23787078,"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":["spring","spring-boot"],"created_at":"2024-10-04T07:02:11.706Z","updated_at":"2025-07-17T00:07:34.201Z","avatar_url":"https://github.com/mhewedy.png","language":"Java","readme":"# Conditional on Module\n\nExample:\n\n```java\npublic interface MyService {\n    Map\u003cString, Object\u003e getProductDetails(String productId);\n}\n\n// this implementation will be used if okhttp is found on the classpath\n@Service\n@ConditionalOnModule(\"okhttp\")\npublic static class OKHttpClientImpl implements MyService {\n\n    @Override\n    public Map\u003cString, Object\u003e getProductDetails(String productId) {\n        // TODO\n        return null;\n    }\n}\n\n// this implementation will be used if okhttp is NOT found on the classpath\n@Service\n@ConditionalOnMissingModule(\"okhttp\")\npublic static class JavaHttpClientImpl implements MyService {\n\n    @Override\n    public Map\u003cString, Object\u003e getProductDetails(String productId) {\n        // TODO\n        return null;\n    }\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhewedy%2Fconditional-on-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhewedy%2Fconditional-on-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhewedy%2Fconditional-on-module/lists"}