{"id":17020886,"url":"https://github.com/rfresh2/simpleeventbus","last_synced_at":"2025-03-22T16:46:33.751Z","repository":{"id":218445840,"uuid":"746388155","full_name":"rfresh2/SimpleEventBus","owner":"rfresh2","description":"Minimal Java EventBus without reflection","archived":false,"fork":false,"pushed_at":"2024-04-22T19:23:35.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"mainline","last_synced_at":"2024-04-24T12:04:06.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/rfresh2.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":"2024-01-21T22:20:52.000Z","updated_at":"2024-04-29T08:53:26.186Z","dependencies_parsed_at":"2024-04-29T08:53:21.540Z","dependency_job_id":"b50a771b-ad2b-422e-8d68-23a4e3da5292","html_url":"https://github.com/rfresh2/SimpleEventBus","commit_stats":null,"previous_names":["rfresh2/simpleeventbus"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfresh2%2FSimpleEventBus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfresh2%2FSimpleEventBus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfresh2%2FSimpleEventBus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfresh2%2FSimpleEventBus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rfresh2","download_url":"https://codeload.github.com/rfresh2/SimpleEventBus/tar.gz/refs/heads/mainline","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244990130,"owners_count":20543615,"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":[],"created_at":"2024-10-14T07:06:15.630Z","updated_at":"2025-03-22T16:46:33.030Z","avatar_url":"https://github.com/rfresh2.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleEventBus\n\nMinimal, High Performance Java EventBus\n\n# Features\n\n* Minimal API, no reflection or annotations processing\n* Asynchronous and Synchronous Event Dispatching\n* Event Priorities\n* Cancellable Events\n\n## Why?\n\nTypical Java Event Buses use annotations and reflection to subscribe or invoke event handlers\n\nI use [GraalVM native image](https://www.graalvm.org/) in projects like [ZenithProxy](https://github.com/rfresh2/ZenithProxy)\n\nUsing GraalVM with reflection is painful as each reflective call [needs to be specified in a metadata file](https://www.graalvm.org/latest/reference-manual/native-image/metadata/#reflection) at build time\n\n# Usage\n\n## Add Dependency\n\n### Gradle\n\nGroovy:\n```groovy\nrepositories {\n    maven { url 'https://maven.2b2t.vc/releases' }\n}\n\ndependencies {\n    implementation 'com.github.rfresh2:SimpleEventBus:1.4'\n}\n```\n\nKotlin:\n```kotlin\nrepositories {\n    maven(\"https://maven.2b2t.vc/releases\")\n}\n\ndependencies {\n    implementation(\"com.github.rfresh2:SimpleEventBus:1.4\")\n}\n```\n\n### Maven\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003emaven.2b2t.vc\u003c/id\u003e\n        \u003curl\u003ehttps://maven.2b2t.vc/releases\u003c/url\u003e \n    \u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.github.rfresh2\u003c/groupId\u003e\n        \u003cartifactId\u003eSimpleEventBus\u003c/artifactId\u003e\n        \u003cversion\u003e1.4\u003c/version\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n## EventBus API\n\nSee [SimpleEventBus.java](https://github.com/rfresh2/SimpleEventBus/blob/mainline/src/main/java/com/github/rfresh2/SimpleEventBus.java)\n\nExample usage: [SimpleEventBusTest.java](https://github.com/rfresh2/SimpleEventBus/blob/mainline/src/test/java/com/github/rfresh2/SimpleEventBusTest.java)\n\n# Benchmarks\n\nVS [LambdaEvents](https://github.com/lenni0451/LambdaEvents)\n\n```\nEventsBenchmark.callASM                avgt    4  418591.445 ± 182333.340  ns/op\nEventsBenchmark.callLambdaMetaFactory  avgt    4  426080.459 ±  11000.081  ns/op\nEventsBenchmark.callMethodHandles      avgt    4  758218.763 ±  57466.156  ns/op\nEventsBenchmark.callReflection         avgt    4  563770.273 ±  33414.060  ns/op\nEventsBenchmark.callSimpleEventBus     avgt    4  371913.931 ±  20369.029  ns/op\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frfresh2%2Fsimpleeventbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frfresh2%2Fsimpleeventbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frfresh2%2Fsimpleeventbus/lists"}