{"id":36694285,"url":"https://github.com/noleme/noleme-vault","last_synced_at":"2026-04-12T22:58:01.292Z","repository":{"id":37981684,"uuid":"351253672","full_name":"noleme/noleme-vault","owner":"noleme","description":"A library providing dependency injection with JSR-330 annotations and extensible YML/JSON configuration","archived":false,"fork":false,"pushed_at":"2025-02-24T06:48:34.000Z","size":398,"stargazers_count":5,"open_issues_count":15,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T23:17:42.683Z","etag":null,"topics":["dependency-injection","java","json-configuration","yml-configuration"],"latest_commit_sha":null,"homepage":"","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/noleme.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}},"created_at":"2021-03-24T23:41:24.000Z","updated_at":"2024-12-27T01:36:09.000Z","dependencies_parsed_at":"2023-02-19T05:00:46.733Z","dependency_job_id":"6623ad1f-67e4-4f58-ae9e-8fed6732ef8f","html_url":"https://github.com/noleme/noleme-vault","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/noleme/noleme-vault","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noleme%2Fnoleme-vault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noleme%2Fnoleme-vault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noleme%2Fnoleme-vault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noleme%2Fnoleme-vault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noleme","download_url":"https://codeload.github.com/noleme/noleme-vault/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noleme%2Fnoleme-vault/sbom","scorecard":{"id":693476,"data":{"date":"2025-08-11","repo":{"name":"github.com/noleme/noleme-vault","commit":"ac2b99513f6b0b768860ce3bbac4e3d55759b837"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:16","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:17","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Warn: no topLevel permission defined: .github/workflows/maven-build.yml:1","Warn: no topLevel permission defined: .github/workflows/maven-checkstyle.yml:1","Warn: no topLevel permission defined: .github/workflows/maven-code-coverage.yml:1","Warn: no topLevel permission defined: .github/workflows/maven-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-build.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-checkstyle.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-checkstyle.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-checkstyle.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-checkstyle.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/maven-checkstyle.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-checkstyle.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-code-coverage.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-code-coverage.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-code-coverage.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-code-coverage.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/maven-code-coverage.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-code-coverage.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-publish.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-publish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/noleme/noleme-vault/maven-publish.yml/master?enable=pin","Info:   0 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/maven-publish.yml:6"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":8,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 17 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T02:54:42.311Z","repository_id":37981684,"created_at":"2025-08-22T02:54:42.312Z","updated_at":"2025-08-22T02:54:42.312Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dependency-injection","java","json-configuration","yml-configuration"],"created_at":"2026-01-12T11:26:32.873Z","updated_at":"2026-04-12T22:58:01.260Z","avatar_url":"https://github.com/noleme.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Noleme Vault\n\n[![Maven Build](https://github.com/noleme/noleme-vault/actions/workflows/maven-build.yml/badge.svg?branch=master)](https://github.com/noleme/noleme-vault/actions/workflows/maven-build.yml)\n[![Maven Central Version](https://img.shields.io/maven-central/v/com.noleme/noleme-vault)](https://central.sonatype.com/artifact/com.noleme/noleme-vault)\n[![javadoc](https://javadoc.io/badge2/com.noleme/noleme-vault/javadoc.svg)](https://javadoc.io/doc/com.noleme/noleme-vault)\n[![coverage](https://codecov.io/gh/noleme/noleme-vault/branch/master/graph/badge.svg?token=Y9FD38RLDE)](https://codecov.io/gh/noleme/noleme-vault)\n![GitHub](https://img.shields.io/github/license/noleme/noleme-vault)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fnoleme%2Fnoleme-vault.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fnoleme%2Fnoleme-vault?ref=badge_shield)\n\nA library providing DI with JSR-330 annotations and extensible YML/JSON configuration.\n\nThe intended goal is to have both \"traditional\" DI capabilities and a non-intrusive, runtime-evaluated configuration system with an emphasis on composition.\nEach configuration file represents a small graph of objects that can be composed with others in order to create an application.\n\n## I. Installation\n\nAdd the following in your `pom.xml`:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.noleme\u003c/groupId\u003e\n    \u003cartifactId\u003enoleme-vault\u003c/artifactId\u003e\n    \u003cversion\u003e0.19.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## II. Notes on Structure and Design\n\nNoleme Vault is designed around a three-stage process for managing dependencies and configuration:\n\n1. **Parsing \u0026 Extraction**: a `VaultParser` reads configuration files (YAML, JSON) and produces `Definitions`, representing a blueprint of a dependency graph, along with registered variables that may be used.\n2. **Compilation \u0026 Registration**: the `VaultFactory` takes these `Definitions`and handles the resolution of service dependencies, validates the graph structure (checking for circular dependencies or missing services), and registers resulting services and variables into a `Cellar`.\n3. **Runtime \u0026 Injection**: the `Vault` instance then can be used as the injection service, leveraging the `Cellar` and providing DI capabilities via JSR-330 annotations or direct queries.\n\n### Key Components\n\n* **Vault**: The main entry point for the library. It provides a high-level API for instantiating services and performing injections\n* **Cellar**: A container for runtime objects. It holds the actual instances of services and the values of configuration variables\n* **Definitions**: A registry of service and variable metadata before they are instantiated\n* **VaultParser**: An extensible component responsible for translating external configuration formats (eg. YML/JSON) into `Definitions`\n* **VaultFactory**: The engine that transforms `Definitions` into a live `Cellar` of services\n\nThe next section sheds some light on how these work together.\n\n## III. Usage\n\nA basic example of using this library with a `yml` configuration file:\n\nGiven a dummy configuration file `my_conf.yml`:\n\n```yaml\nvariables:\n    my_var: 12.34\n    my_other_var: \"interesting\"\n    my_env_var: ${MY_VAR:default_value}\n\nservices:\n    my_service:\n        class: \"me.company.MyClass\"\n        constructor:\n            - \"not so interesting\"\n            - \"##my_var##\"\n\n    my_other_service:\n        class: \"me.company.MyOtherClass\"\n        constructor:\n            - \"##my_other_var##\"\n``` \n\nWe could perform injection via annotations on a dummy class such as:\n\n```java\npublic class MyService\n{\n    private final MyClass service;\n    private final MyOtherClass otherService;\n\n    @Inject\n    public MyService(MyClass service, @Named(\"my_other_service\") MyOtherClass otherService)\n    {\n        this.service = service;\n        this.otherService = otherService;\n    }\n}\n```\n\n..and do the following:\n\n```java\nvar vault = Vault.with(\"my_conf.yml\");\nMyService service = vault.instance(MyService.class);\n```\n\nIt's also possible to use field annotations and proceed the following way:\n\n```java\npublic class MyService\n{\n    @Inject private MyClass service;\n    @Inject private MyOtherClass otherService;\n}\n```\n\n```java\nMyService service = vault.inject(new MyService());\n```\n\nAlternatively we could directly query one of the declared services:\n \n ```java\n MyClass myService = vault.instance(MyClass.class, \"my_service\");\n ```\n \n ## IV. Documentation\n \n For more details on the library's features, check out the following documentation pages:\n \n * **[Introduction](doc/introduction.md)**: Design philosophy and key components\n * **[Services](doc/services.md)**: Declarations, constructors, factory methods, and lifecycle\n * **[Variables](doc/variables.md)**: Variable definitions, environment variables, and runtime overrides\n * **[Composition](doc/composition.md)**: Imports, scoped blueprints, and service tagging\n * **[JSR-330](doc/jsr330.md)**: JSR-330 annotations, field/constructor injection, and modules\n * **[Advanced](doc/advanced.md)**: Custom modules, preprocessors, and programmatic composition\n \n ## V. Dev Installation\n \n This project will require you to have the following:\n\n* Java 11+\n* Git (versioning)\n* Maven (dependency resolving, publishing and packaging) \n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fnoleme%2Fnoleme-vault.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fnoleme%2Fnoleme-vault?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoleme%2Fnoleme-vault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoleme%2Fnoleme-vault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoleme%2Fnoleme-vault/lists"}