{"id":15297531,"url":"https://github.com/leberkleber/ljcm","last_synced_at":"2025-09-21T06:32:54.984Z","repository":{"id":57733920,"uuid":"122514469","full_name":"leberKleber/ljcm","owner":"leberKleber","description":"Lightweight Java Configuration Management (Small, simple and lightweight java framework to manage configurations)","archived":false,"fork":false,"pushed_at":"2018-04-18T07:39:49.000Z","size":98,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T08:59:24.801Z","etag":null,"topics":["configuration","configuration-management","java","lightweight","lightweight-java-framework","small"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leberKleber.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":"2018-02-22T17:55:00.000Z","updated_at":"2023-02-01T21:16:56.000Z","dependencies_parsed_at":"2022-08-24T11:20:22.121Z","dependency_job_id":null,"html_url":"https://github.com/leberKleber/ljcm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/leberKleber/ljcm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leberKleber%2Fljcm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leberKleber%2Fljcm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leberKleber%2Fljcm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leberKleber%2Fljcm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leberKleber","download_url":"https://codeload.github.com/leberKleber/ljcm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leberKleber%2Fljcm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276204814,"owners_count":25602738,"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-09-21T02:00:07.055Z","response_time":72,"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":["configuration","configuration-management","java","lightweight","lightweight-java-framework","small"],"created_at":"2024-09-30T19:18:11.799Z","updated_at":"2025-09-21T06:32:54.948Z","avatar_url":"https://github.com/leberKleber.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/leberKleber/ljcm.svg?branch=master)](https://travis-ci.org/leberKleber/ljcm)\n[![codecov.io](https://codecov.io/github/leberKleber/ljcm/coverage.svg?branch=master)](https://codecov.io/github/leberKleber)\n[![license](https://img.shields.io/github/license/leberkleber/ljcm.svg)]()\n# ljcm \n**Lightweight Java Configuration Management**\n\nSmall, simple and lightweight java framework to manage configurations\n\n## How to use\n### 1) Include via Maven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.leberkleber.ljcm\u003c/groupId\u003e\n    \u003cartifactId\u003eljcm-minimal\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n### 2) Annotate Configuration-File\n```java\npublic class Configuration {\n    @Configuration(\"my.config.key\")\n    private String myConfig;\n    \n    public String getMyConfig() {\n        return myConfig;\n    }\n}\n```\n### 3) Configure ljcm\n```java\npublic static void main(String[] args){\n    ConfigurationProcessor cp = new ConfigurationProcessorBuilder()\n        .addConfigurationParsers(Parser.getDefaultParser())\n        .setConfigurationLoader(\n            new HierarchicalLoader.Builder()\n                .addLoader(new EnvironmentVariableLoader())\n                .addLoader(new PropertiesFileLoader(\"classpath:/app.properties\"))\n                .addLoader(new PropertiesFileLoader(\"/etc/myapp/app.properties\"))\n                .build();\n        ).build();\n          \n    cp.process(Configuration.class);\n}\n```\n## Configuration parser\n### Default parser\nThe \"ljcm-minimal-parser\" contains a minial set of parsers:\n- Boolean / boolean @BooleanParser\n- Byte / byte @ByteParser\n- Character[] / char[] @CharArrayParser\n- Character / char @CharParser\n- Double / double @DoubleParser\n- Float / float @FloatParser\n- Integer / int @IntParser\n- Long / long @LongParser\n- Short / short @ShortParser\n- String @ StringParser\n\nAll \"minimal-parser\" can be loaded via:\n```java\nParser.getDefaultParser()\n```\n### Custom parser\nA custom parser must implement the \"ConfigurationParser\" interface.\n\n## Configuration loader\n### Default loader\nThe \"ljcm-minimal-loader\" contains a minial set of loaders:\n- HierarchicalLoader\n- EnvironmentVariableLoader\n- PropertiesFileLoader\n\n## Logging\n\nljcm uses jul. You can easy use a jul-bridge e.g.:\nSLF4J:\n```java\nimport java.util.logging.Logger;\nimport org.slf4j.bridge.SLF4JBridgeHandler;\n\nSLF4JBridgeHandler.removeHandlersForRootLogger();\nSLF4JBridgeHandler.install();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleberkleber%2Fljcm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleberkleber%2Fljcm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleberkleber%2Fljcm/lists"}