Liking cljdoc? Tell your friends :D

workflo.macros.registry


defregistryclj/smacro

(defregistry name)
(defregistry name callback)

Defines a registry with the given name. See defregistry* for more information.

Defines a registry with the given name. See defregistry* for
more information.
sourceraw docstring

defregistry*clj

(defregistry* name)
(defregistry* name env)
(defregistry* name callback env)

Defines a registry with the given name. The resulting registry maps names (e.g. screen, view or command names) to definitions (e.g. the definition of a screen, a command or a view).

Definitions in the registry can be looked up using one of the utility functions that are defined implicitly.

(defregistry* 'command) (defregistry* 'command (fn [event entity-name] ...))

will result in the following functions to be defined:

(defn register-command! [name def] ...) (defn unregister-command! [name] ...) (defn registered-commands [] ...) (defn reset-registered-commands! [] ...) (defn resolve-command [name] ...).

Defines a registry with the given name. The resulting registry
maps names (e.g. screen, view or command names) to definitions
(e.g. the definition of a screen, a command or a view).

Definitions in the registry can be looked up using one of the
utility functions that are defined implicitly.

(defregistry* 'command)
(defregistry* 'command
              (fn [event entity-name]
                ...))

will result in the following functions to be defined:

(defn register-command! [name def] ...)
(defn unregister-command! [name] ...)
(defn registered-commands [] ...)
(defn reset-registered-commands! [] ...)
(defn resolve-command [name] ...).
sourceraw docstring

throw-registry-errorclj/s≠

(throw-registry-error msg)
clj

Throws an error generated by a registry.

Throws an error generated by a registry.
source (clj)source (cljs)raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close