Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System validation helpers to be called from your start method #24

Open
Pancia opened this issue Nov 16, 2016 · 0 comments
Open

System validation helpers to be called from your start method #24

Pancia opened this issue Nov 16, 2016 · 0 comments

Comments

@Pancia
Copy link
Contributor

Pancia commented Nov 16, 2016

Provide helper functions that establish a common pattern for validating components dependencies and arguments when starting up.

Something like:

(defrecord Database
  cmp/Lifecycle
  (start [this]
    (**verify!** ...test-fn... ...maybe-on-error...)
    (when-not (**verify-only?**)
       #_(only when we shouldnt just verify))
    ...start this...))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant