You may also want to have a look at the system library. It ships with 
readymade components, and it contains a full application example (if 
minimal) to show how things work. 
https://github.com/danielsz/system

On Friday, November 28, 2014 12:28:45 PM UTC+2, Colin Yates wrote:
>
> Hi all,
>
> Am I right in thinking that in order to use 
> https://github.com/stuartsierra/component every consumer of a component 
> must also be a component?
>
> For example, if I have a component DB and I want to use that DB in (defn 
> blob-query [db criteria]...), do I pull the DB out of the system map and 
> call it or am I expected to make a BlobQuery component which offers a 
> (blob-query [criteria]) API?
>
> Initially I thought the "system" was just the stateful components, but 
> after watching https://www.youtube.com/watch?v=13cmHf_kt-Q and reading 
> the doc, particularly the "all or nothing" warnings I think I might have 
> missed something.
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to