facet classafIocConfig::Config

sys::Obj
  afIocConfig::Config : sys::Facet

@Serializable

Use with @Inject to inject config values into your classes. Example:

@Inject @Config { id="gzipThreshold" }
private Int gzipThreshold

If id is not provided, it takes on the name of the field. Therefore the following is identical to the above:

@Inject @Config
private Int gzipThreshold
id

Source

const Str? id := null

The id of the config value to be injected.