{"id":18258768,"url":"https://github.com/manoelcampos/java-reflection-example","last_synced_at":"2025-07-27T16:35:12.257Z","repository":{"id":190461238,"uuid":"682622273","full_name":"manoelcampos/java-reflection-example","owner":"manoelcampos","description":"A simple Java Reflection example","archived":false,"fork":false,"pushed_at":"2023-08-24T18:11:33.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T23:28:59.222Z","etag":null,"topics":["demo","example","java","java-17","reflection","sample"],"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/manoelcampos.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,"governance":null}},"created_at":"2023-08-24T15:06:01.000Z","updated_at":"2023-08-24T18:07:09.000Z","dependencies_parsed_at":"2023-08-24T19:53:04.280Z","dependency_job_id":null,"html_url":"https://github.com/manoelcampos/java-reflection-example","commit_stats":null,"previous_names":["manoelcampos/java-reflection-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manoelcampos/java-reflection-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoelcampos%2Fjava-reflection-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoelcampos%2Fjava-reflection-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoelcampos%2Fjava-reflection-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoelcampos%2Fjava-reflection-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manoelcampos","download_url":"https://codeload.github.com/manoelcampos/java-reflection-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoelcampos%2Fjava-reflection-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267387428,"owners_count":24079244,"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-07-27T02:00:11.917Z","response_time":82,"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":["demo","example","java","java-17","reflection","sample"],"created_at":"2024-11-05T10:34:30.598Z","updated_at":"2025-07-27T16:35:12.215Z","avatar_url":"https://github.com/manoelcampos.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Reflection Example [![build](https://github.com/manoelcampos/java-reflection-example/actions/workflows/build.yml/badge.svg)](https://github.com/manoelcampos/java-reflection-example/actions/workflows/build.yml)\n\nShows how to dynamically discover object fields, values, methods and constructors.\nBelow is the result of running the project's [Main.java](src/main/java/io/github/manoelcampos/reflection/Main.java) class,\nwhich discovers information about any object you provide.\nThe sample below prints data about a `Customer` object.\n\n```log\nCustomer Fields\n  id: null\n  name: Manoel\n  phone: 99999-9999\n  city: Palmas - TO\n  gender: M\n\nCustomer Constructors\n  Customer()\n  Customer(String, char, String, City)\n\nCustomer Methods\n  String getName()\n  Customer of(Customer)\n  void setName(String)\n  Long getId()\n  void setGender(char)\n  String getPhone()\n  void setPhone(String)\n  City getCity()\n  void setCity(City)\n  char getGender()\n  boolean isMale()\n  boolean isFemale()\n  void setId(Long)\n```\n\n## Requirements\n\nThe project was built using JDK 17.\n\n## Running\n\nOpen the project on you IDE and run the [Main.java](src/main/java/io/github/manoelcampos/reflection/Main.java) class.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanoelcampos%2Fjava-reflection-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanoelcampos%2Fjava-reflection-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanoelcampos%2Fjava-reflection-example/lists"}