{"id":21131397,"url":"https://github.com/jrop/mousetrap","last_synced_at":"2025-03-14T12:24:02.326Z","repository":{"id":144984714,"uuid":"12307352","full_name":"jrop/mousetrap","owner":"jrop","description":"An event library for Java","archived":false,"fork":false,"pushed_at":"2013-08-22T21:50:00.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T10:49:06.211Z","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/jrop.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}},"created_at":"2013-08-22T20:37:10.000Z","updated_at":"2013-12-14T23:16:22.000Z","dependencies_parsed_at":"2023-03-22T17:02:10.904Z","dependency_job_id":null,"html_url":"https://github.com/jrop/mousetrap","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/jrop%2Fmousetrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrop%2Fmousetrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrop%2Fmousetrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrop%2Fmousetrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrop","download_url":"https://codeload.github.com/jrop/mousetrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243574528,"owners_count":20313072,"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-11-20T05:55:25.213Z","updated_at":"2025-03-14T12:24:02.268Z","avatar_url":"https://github.com/jrop.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mousetrap\n=========\n\nA (very small) event library for Java.\n\nUse like:\n\n    public class MyClass {\n        public final event.Trigger\u003cVoid\u003e somethingHappend = new event.Trigger\u003cVoid\u003e();\n\n        public void doSomething() {\n            somethingHappened.trigger(null);\n        }\n\n        public static void main(String[] args) {\n            MyClass mc = new MyClass();\n\n            mc.somethingHappened.addListener(new event.Listener\u003cVoid\u003e() {\n                public void handle(Trigger\u003cVoid\u003e evt, Void args) {\n                    System.out.println(\"Something happend!\");\n                }\n            });\n\n            mc.doSomething();\n        }\n    }\n\n# License\n\nSee the LICENCE file in the same directory as this README.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrop%2Fmousetrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrop%2Fmousetrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrop%2Fmousetrap/lists"}