JetleafProperty constructor
Base class for all Jetleaf framework configuration properties.
A JetleafProperty defines a typed configuration entry used within Jetleaf and related Jetleaf-based frameworks. Each property has:
- A unique key used for lookup in the environment.
- An optional value when the property is not set.
- An optional description to document its purpose.
Properties are strongly typed using generics. For example:
const JetleafProperty serverPort = JetleafProperty("server.port", 8080, "The TCP port the server will bind to.");
Jetleaf also supports user-defined properties via JetleafProperty.custom.
Implementation
const JetleafProperty(this.key, this.value, [this.description]);