Skip to Content
Clojure Applied
book

Clojure Applied

by Ben Vandgrift, Alex Miller
August 2015
Intermediate to advanced
220 pages
5h 53m
English
Pragmatic Bookshelf
Content preview from Clojure Applied

Putting Things Together

In Component, a system is a special component that can start and stop other components. The components in a system are started in an order such that dependencies are always started before a component. This requires that no cycles are in the component dependency graph. Similarly, when a system is stopped, components are stopped in the reverse order of the start.

A system is defined with the component/system-map function. The map defines a mapping from component name to component instance. When a component has component dependencies, this is specified with component/using, which takes either a vector of injected components (if the names are the same in the system and inside the component) or a mapping from the component ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Clojure Programming

Clojure Programming

Chas Emerick, Brian Carper, Christophe Grand
Living Clojure

Living Clojure

Carin Meier
Clojure Cookbook

Clojure Cookbook

Ryan Neufeld, Luke VanderHart

Publisher Resources

ISBN: 9781680501476Errata Page