{"id":15067797,"url":"https://github.com/akayibrahim/featureflags","last_synced_at":"2025-03-16T05:44:46.055Z","repository":{"id":57732311,"uuid":"305494633","full_name":"akayibrahim/featureflags","owner":"akayibrahim","description":"FeatureFlags for Spring Boot - Project 7","archived":false,"fork":false,"pushed_at":"2020-11-15T09:07:26.000Z","size":96,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T18:24:27.408Z","etag":null,"topics":["annotation","easyfeaturetoggle","featureflags","java","spring","spring-boot","springannotation","springannotations","springboot"],"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/akayibrahim.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":"2020-10-19T19:39:17.000Z","updated_at":"2024-08-20T21:41:00.000Z","dependencies_parsed_at":"2022-09-10T19:51:45.285Z","dependency_job_id":null,"html_url":"https://github.com/akayibrahim/featureflags","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/akayibrahim%2Ffeatureflags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akayibrahim%2Ffeatureflags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akayibrahim%2Ffeatureflags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akayibrahim%2Ffeatureflags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akayibrahim","download_url":"https://codeload.github.com/akayibrahim/featureflags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354850,"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":["annotation","easyfeaturetoggle","featureflags","java","spring","spring-boot","springannotation","springannotations","springboot"],"created_at":"2024-09-25T01:27:27.169Z","updated_at":"2025-03-16T05:44:46.036Z","avatar_url":"https://github.com/akayibrahim.png","language":"Java","readme":"# Feature Flags Annotation for Spring (Java)\n\n#### This project is for toggle off/on of java features.\n\n**Follow steps:**\n\n1 . Add below dependency to pom.xml of your project\n```java\n\u003cdependency\u003e\n   \u003cgroupId\u003eio.github.akayibrahim\u003c/groupId\u003e\n   \u003cartifactId\u003efeatureflags\u003c/artifactId\u003e\n   \u003cversion\u003e1.0.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n2 . Add below import annotation to your spring boot main class.\n`@Import(FeatureFlags.class)`\n\nExample usage:\n```java\n@SpringBootApplication\n@Import(FeatureFlags.class)\npublic class DemoApplication {\n    public static void main(String[] args) {\n        SpringApplication.run(DemoApplication.class, args);\n    }\n}\n```\n3 . Now you are ready. You can add FeatureFlags annotation to your methods like below.\n```java\n@FeatureFlag(enabled = \"featureFlags.demo\")\n@Override\npublic void demo() {\n\tSystem.out.println(\"Demo Feature Flags\");\n}\n```\n4 . Don't forget add toggle parameter to your config file. (application.properties / application.yml)\n```yaml\nfeatureFlags:\n  demo: true\n```\n\nNOTES: \n- \tif your method has return object, don't forget null check when the method call.\n- \tFeature Flags can not use for Aspect.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakayibrahim%2Ffeatureflags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakayibrahim%2Ffeatureflags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakayibrahim%2Ffeatureflags/lists"}