{"id":20892934,"url":"https://github.com/carmjos/easyannotation","last_synced_at":"2025-08-19T20:05:46.191Z","repository":{"id":217496658,"uuid":"744044975","full_name":"CarmJos/EasyAnnotation","owner":"CarmJos","description":":bulb: Easy (to use) Annotations! A lightweight, easy-to-use annotation load library in Java, which can use the data values in the annotations in a simple, friendly and expandable way.","archived":false,"fork":false,"pushed_at":"2025-03-11T20:40:43.000Z","size":330,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T21:32:55.781Z","etag":null,"topics":["annotation","fastdev","java","java-library","library","loader","metadata","utils"],"latest_commit_sha":null,"homepage":"https://carmjos.github.io/EasyAnnotation/","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/CarmJos.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-16T14:23:00.000Z","updated_at":"2025-03-11T20:40:42.000Z","dependencies_parsed_at":"2024-01-16T21:17:11.917Z","dependency_job_id":"74758baf-f8a2-479b-95b9-9a73534be10b","html_url":"https://github.com/CarmJos/EasyAnnotation","commit_stats":null,"previous_names":["carmjos/easyannotation"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarmJos%2FEasyAnnotation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarmJos%2FEasyAnnotation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarmJos%2FEasyAnnotation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarmJos%2FEasyAnnotation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarmJos","download_url":"https://codeload.github.com/CarmJos/EasyAnnotation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243277501,"owners_count":20265352,"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","fastdev","java","java-library","library","loader","metadata","utils"],"created_at":"2024-11-18T10:14:17.825Z","updated_at":"2025-03-12T19:13:32.504Z","avatar_url":"https://github.com/CarmJos.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"```text\n ___                _                 _        _   _          \n| __|__ _ ____  _  /_\\  _ _  _ _  ___| |_ __ _| |_(_)___ _ _  \n| _|/ _` (_-\u003c || |/ _ \\| ' \\| ' \\/ _ \\  _/ _` |  _| / _ \\ ' \\ \n|___\\__,_/__/\\_, /_/ \\_\\_||_|_||_\\___/\\__\\__,_|\\__|_\\___/_||_|\n             |__/                                             \n```\n\nREADME LANGUAGES [ [**English**](README.md) | [中文](README_CN.md)  ]\n\n# EasyAnnotation\n\n[![version](https://img.shields.io/github/v/release/CarmJos/EasyAnnotation)](https://github.com/CarmJos/EasyAnnotation/releases)\n[![License](https://img.shields.io/github/license/CarmJos/EasyAnnotation)](https://www.gnu.org/licenses/lgpl-3.0.html)\n[![workflow](https://github.com/CarmJos/EasyAnnotation/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/CarmJos/EasyAnnotation/actions/workflows/maven.yml)\n[![CodeFactor](https://www.codefactor.io/repository/github/carmjos/EasyAnnotation/badge)](https://www.codefactor.io/repository/github/carmjos/EasyAnnotation)\n![CodeSize](https://img.shields.io/github/languages/code-size/CarmJos/EasyAnnotation)\n![](https://visitor-badge.glitch.me/badge?page_id=EasyAnnotation.readme)\n\n\n**Easy _(to use)_ Annotations!** \n\nA lightweight, easy-to-use annotation load library in Java,\nwhich can use the data values in the annotations in a simple, friendly and expandable way.\n\n## Development\n\nFor the latest JavaDoc release, [CLICK HERE](https://CarmJos.github.io/EasyAnnotation).\n\n### Code Samples\n\n```java\npublic interface DemoMetas {\n\n    /**\n     * Meta descriptions\n     */\n    AnnotatedMetaType\u003cDemoAnnotation, String\u003e SAYING = AnnotatedMetaType.of(\n            DemoAnnotation.class, DemoAnnotation::value\n    );\n    \n    AnnotatedMetaType\u003cDemoAnnotation, Boolean\u003e SUCCESS = AnnotatedMetaType.of(\n            DemoAnnotation.class, DemoAnnotation::success\n    );\n    \n    AnnotatedMetaType\u003cDemoAnnotation, Boolean\u003e ANNOTATED = AnnotatedMetaType.of(\n            DemoAnnotation.class, (a) -\u003e true\n    );\n    \n}\n\n```\n\n```java\npublic class Sample {\n    public static void main(String[] args) {\n        // Create a loader\n        AnnotatedMetaLoader loader = AnnotatedMetaLoader.of(\n                DemoMetas.ANNOTATED, DemoMetas.SAYING, DemoMetas.SUCCESS\n        );\n\n        // Load from a field\n        Field field = AnnotationTest.class.getField(\"SOME_FIELD\");\n        AnnotatedMetaHolder fieldMeta = loader.load(field);\n        boolean annotated = fieldMeta.get(DemoMetas.ANNOTATED);\n\n        // Load from a class\n        AnnotatedMetaHolder classMeta = loader.load(AnnotationTest.class);\n        String saying = classMeta.get(DemoMetas.SAYING);\n    }\n}\n```\n\n### Dependencies\n\n#### Maven Dependency\n\n\u003cdetails\u003e\n\u003csummary\u003eRemote Repository Configuration\u003c/summary\u003e\n\n```xml\n\n\u003cproject\u003e\n    \u003crepositories\u003e\n\n        \u003crepository\u003e\n            \u003c!-- Using Maven Central Repository for secure and stable updates, though synchronization might be needed. --\u003e\n            \u003cid\u003emaven\u003c/id\u003e\n            \u003cname\u003eMaven Central\u003c/name\u003e\n            \u003curl\u003ehttps://repo1.maven.org/maven2\u003c/url\u003e\n        \u003c/repository\u003e\n\n        \u003crepository\u003e\n            \u003c!-- Using GitHub dependencies for real-time updates, configure required (recommended). --\u003e\n            \u003cid\u003egithub\u003c/id\u003e\n            \u003cname\u003eGitHub Packages\u003c/name\u003e\n            \u003curl\u003ehttps://maven.pkg.github.com/CarmJos/EasyAnnotation\u003c/url\u003e\n        \u003c/repository\u003e\n\n    \u003c/repositories\u003e\n\u003c/project\u003e\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eGeneric Native Dependency\u003c/summary\u003e\n\n```xml\n\n\u003cproject\u003e\n    \u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003ecc.carm.lib\u003c/groupId\u003e\n            \u003cartifactId\u003eeasyannotation\u003c/artifactId\u003e\n            \u003cversion\u003e[LATEST RELEASE]\u003c/version\u003e\n            \u003cscope\u003ecompile\u003c/scope\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n\u003c/project\u003e\n```\n\n\u003c/details\u003e\n\n#### Gradle Dependency\n\n\u003cdetails\u003e\n\u003csummary\u003eRemote Repository Configuration\u003c/summary\u003e\n\n```groovy\nrepositories {\n\n    // Using Maven Central Repository for secure and stable updates, though synchronization might be needed.\n    mavenCentral()\n\n    // Using GitHub dependencies for real-time updates, configure required (recommended).\n    maven { url 'https://maven.pkg.github.com/CarmJos/EasyAnnotation' }\n\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eGeneric Native Dependency\u003c/summary\u003e\n\n```groovy\n\ndependencies {\n    api \"cc.carm.lib:easyannotation:[LATEST RELEASE]\"\n}\n```\n\n\u003c/details\u003e\n\n## Support and Donation\n\nIf you appreciate this plugin, consider supporting me with a donation!\n\nThank you for supporting open-source projects!\n\nMany thanks to Jetbrains for kindly providing a license for us to work on this and other open-source projects.\n\n[![](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://www.jetbrains.com/?from=https://github.com/CarmJos/EasyAnnotation)\n\n## Open Source License\n\nThis project's source code is licensed under [The MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarmjos%2Feasyannotation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarmjos%2Feasyannotation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarmjos%2Feasyannotation/lists"}