{"id":13808111,"url":"https://github.com/aesteve/vertx-pojo-config","last_synced_at":"2026-04-16T13:32:20.873Z","repository":{"id":87790149,"uuid":"57565196","full_name":"aesteve/vertx-pojo-config","owner":"aesteve","description":"Simple Vert.x extension to map your JsonObject configuration to a standard Java bean","archived":false,"fork":false,"pushed_at":"2016-05-01T09:55:00.000Z","size":59,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T09:31:30.497Z","etag":null,"topics":["configuration","json","mapping","validation","vertx"],"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/aesteve.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,"roadmap":null,"authors":null}},"created_at":"2016-05-01T06:44:45.000Z","updated_at":"2018-09-24T13:27:10.000Z","dependencies_parsed_at":"2024-01-03T02:25:22.734Z","dependency_job_id":"a8395d1a-fe45-436e-a585-af31cf671ba9","html_url":"https://github.com/aesteve/vertx-pojo-config","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/aesteve%2Fvertx-pojo-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aesteve%2Fvertx-pojo-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aesteve%2Fvertx-pojo-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aesteve%2Fvertx-pojo-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aesteve","download_url":"https://codeload.github.com/aesteve/vertx-pojo-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271527,"owners_count":20911587,"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":["configuration","json","mapping","validation","vertx"],"created_at":"2024-08-04T01:01:35.275Z","updated_at":"2026-04-16T13:32:15.827Z","avatar_url":"https://github.com/aesteve.png","language":"Java","funding_links":[],"categories":["Utilities"],"sub_categories":[],"readme":"## Vertx-pojo-config\n\nA very simple tool to map Vert.x's json configuration onto a typed configuration Java bean.\n\nIt uses Jackson's object mapper behind the hood.\n\n\n### How to use it ?\n\nSimply make your `Verticle` extend `TypedConfigurationVerticle` and declare the class of your configuration :\n\n```java\nclass SimpleConf {\n\n  private String host;\n  private int port;\n\n  public String getHost() {\n    return host;\n  }\n\n  public void setHost(String host) {\n    this.host = host;\n  }\n\n  public int getPort() {\n    return port;\n  }\n\n  public void setPort(int port) {\n    this.port = port;\n  }\n  \n}\n```\n\n```java\nclass SimpleConfigurationVerticle extends TypedConfigurationVerticle\u003cSimpleConf\u003e {\n\n    @Override\n    public Class\u003cSimpleConf\u003e getConfigClass() {\n      return SimpleConf.class;\n    }\n    \n    \n}\n\n```\n\nThen, from within your verticle just call `getConfig()` to get the `SimpleConf` instance. The `config()` method will still be returning the `JsonObject` configuration.\n\n### JSR 303 (Bean validation)\n\nIf an implementation of the JSR 303 (hibernate-validator for instance) within your classpath, then your configuration will be checked against a validator.\nThis means you can annotate your configuration with `@Email`, `@NotNull`, and stuff like that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faesteve%2Fvertx-pojo-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faesteve%2Fvertx-pojo-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faesteve%2Fvertx-pojo-config/lists"}