What problem does it solve?
This Skill simplifies the process of loading and accessing configuration properties in Java applications, eliminating the need for complex boilerplate code and external dependencies.
Core Features & Use Cases
- Zero-Dependency Loading: Integrates a single-class utility for loading properties directly into your project.
- Multiple Source Support: Reads configuration from user home directory, local files, and system properties with defined precedence.
- Type-Safe Access: Provides convenient methods for retrieving configuration values as strings, integers, booleans, and lists.
- Use Case: You need to load database connection details, server ports, and feature flags for your Java application from a properties file and system overrides.
Quick Start
Integrate zcfg into your Java project by copying the ZCfg.java file into a zcfg sub-package and calling ZCfg.load("your-app-name") at application startup.