{"id":20780886,"url":"https://github.com/x4e/eventdispatcher","last_synced_at":"2025-08-17T21:15:03.743Z","repository":{"id":138137291,"uuid":"228626197","full_name":"x4e/EventDispatcher","owner":"x4e","description":"A Kotlin implementation of Event Driven Architecture","archived":false,"fork":false,"pushed_at":"2020-07-09T12:59:47.000Z","size":91,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T20:35:13.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x4e.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":"2019-12-17T13:47:06.000Z","updated_at":"2022-02-11T22:20:11.000Z","dependencies_parsed_at":"2023-03-18T03:15:49.108Z","dependency_job_id":null,"html_url":"https://github.com/x4e/EventDispatcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/x4e/EventDispatcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4e%2FEventDispatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4e%2FEventDispatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4e%2FEventDispatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4e%2FEventDispatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x4e","download_url":"https://codeload.github.com/x4e/EventDispatcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x4e%2FEventDispatcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270907416,"owners_count":24665958,"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-08-17T02:00:09.016Z","response_time":129,"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":[],"created_at":"2024-11-17T13:40:00.431Z","updated_at":"2025-08-17T21:15:03.648Z","avatar_url":"https://github.com/x4e.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EventDispatcher\nA Kotlin implementation of Event Driven Architecture.\n\nExample usage:\n\nbuild.gradle:\n```Groovy\nrepositories {\n\tmaven {\n\t\turl 'https://jitpack.io'\n\t}\n}\ndependencies {\n\tcompile 'com.github.cookiedragon234:EventDispatcher:master-SNAPSHOT'\n}\n```\n\nKotlin:\n```Kotlin\ndata class ExampleEvent(var str: String)\n\nobject Test {\n\tinit {\n\t\tEventDispatcher.register { event: ExampleEvent -\u003e\n\t\t\tprintln(\"Event Received!\")\n\t\t\tevent.str = \"b\"\n\t\t}\n\t\twith (ExampleEvent(\"a\")) {\n\t\t\tEventDispatcher.dispatch(this)\n\t\t\tprintln(str) // \"b\"\n\t\t}\n\t}\n}\n```\n\nJava:\n```Java\npublic class Test {\n\tstatic class Event {\n\t\tpublic String str;\n\t\tpublic Event(String str) {\n\t\t\tthis.str = str;\n\t\t}\n\t}\n\t\n\tstatic {\n\t\tEventDispatcher.register(Event.class, event -\u003e {\n\t\t\tSystem.out.println(\"Event Received!\");\n\t\t\tevent.str = \"b\";\n\t\t\treturn Unit.INSTANCE;\n\t\t});\n\t\tEvent event = new Event(\"a\");\n\t\tEventDispatcher.dispatch(event);\n\t\tSystem.out.println(event.str); // \"b\"\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx4e%2Feventdispatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx4e%2Feventdispatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx4e%2Feventdispatcher/lists"}