{"id":22389939,"url":"https://github.com/entando/config-connector","last_synced_at":"2025-10-12T00:42:00.191Z","repository":{"id":39959727,"uuid":"184312120","full_name":"entando/config-connector","owner":"entando","description":"Entando Config Service connector","archived":false,"fork":false,"pushed_at":"2022-05-20T20:57:08.000Z","size":34,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-26T21:34:05.404Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/entando.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":"2019-04-30T18:29:05.000Z","updated_at":"2019-05-28T10:52:39.000Z","dependencies_parsed_at":"2022-08-25T09:10:22.351Z","dependency_job_id":null,"html_url":"https://github.com/entando/config-connector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/entando/config-connector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entando%2Fconfig-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entando%2Fconfig-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entando%2Fconfig-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entando%2Fconfig-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/entando","download_url":"https://codeload.github.com/entando/config-connector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entando%2Fconfig-connector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009508,"owners_count":26084609,"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-10-11T02:00:06.511Z","response_time":55,"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":[],"created_at":"2024-12-05T03:13:51.953Z","updated_at":"2025-10-12T00:42:00.169Z","avatar_url":"https://github.com/entando.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Entando Config Service Connector\n\n[![Build Status](https://jenkins.entandocloud.com/buildStatus/icon?job=de-config-connector-master)](https://jenkins.entandocloud.com/job/de-config-connector-master/)\n[![Coverage Status](https://coveralls.io/repos/github/entando/config-connector/badge.svg?branch=master)](https://coveralls.io/github/entando/config-connector?branch=master)\n\nThis library is used to integrate with Entando ConfigService without the need to implement the communication to the service.\n\n## Install\n\nAdd the dependency to your project\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.entando\u003c/groupId\u003e\n    \u003cartifactId\u003econfig-connector\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThen create a Configuration class to create the bean\n\n```java\n@Configuration\npublic class ConfigServiceConfiguration {\n\n    @Bean\n    public ConfigService\u003cYourCustomConfig\u003e configService(\n            @Value(\"${client-id}\") final String clientId,\n            @Value(\"${client-secret}\") final String clientSecret,\n            @Value(\"${access-token-uri}\") final String accessTokenUri,\n            @Value(\"${config-service-uri}\") final String configServiceUri) {\n        return new ConfigService\u003c\u003e(clientId, clientSecret, accessTokenUri, configServiceUri, YourCustomConfig.class);\n    }\n\n}\n```\n\nNow you can use the service, for example a wrapper:\n\n```java\n@Service\npublic class YourCustomConfigService {\n\n    private final ConfigService\u003cYourCustomConfig\u003e configService;\n\n    @Autowired\n    public YourCustomConfigService(final ConfigService\u003cYourCustomConfig\u003e configService) {\n        this.configService = configService;\n    }\n\n    public YourCustomConfig getConfig() {\n        return Optional.ofNullable(configService.getConfig())\n            .orElseGet(YourCustomConfig::getDefault);\n    }\n\n    public void updateAvatarConfig(final YourCustomConfig config) {\n        configService.updateConfig(config);\n    }\n\n}\n```\n\nThe configuration is builtin with a memory cache (Guava).\nAt the moment it is not configurable and has 10 minutes TTL.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentando%2Fconfig-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentando%2Fconfig-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentando%2Fconfig-connector/lists"}