The :sc/create-fn is passed configuration of the component, but not its
dependencies, that comes later. This can often be a map->Record function in
a namespace. Or, it can be a custom application that validates the
configuration (I use spec) and then calls map->Record. Component will
later
Sierra's Component README illustrates factory functions that take a
complete static configuration at once, followed up by injections. But,
really, it's none of Component's concern how you work a Lifecycle thing
into shape for Component to assoc the injections and start it.
In Schematic,
Schematic is a Clojure library which aids in assembling systems from
configuration data.
GitHub repo: https://github.com/walmartlabs/schematic
Documentation: https://walmartlabs.github.io/apidocs/schematic/
Featured changes in 1.3.0:
- Uses Component's `transitive-dependencies` function, which