Liking cljdoc? Tell your friends :D

io.randomseed.bankster.registry

Bankster, registry management.

Bankster, registry management.
raw docstring

*default*clj

Registry that, if set to a truthy value (not nil and not false), will be used instead of a global, shared registry.

Registry that, if set to a truthy value (not nil and not false), will be used
instead of a global, shared registry.
sourceraw docstring

*warn-on-inconsistency*clj

Dynamic flag which enables warnings when inconsistencies are found in a registry. Default is false.

Dynamic flag which enables warnings when inconsistencies are found in a
registry. Default is false.
sourceraw docstring

*warnings-logger*clj

A logging function which should take a message string and an optional map. Used to issue registry warnings. Defaults to clojure.tools.logging/warn.

A logging function which should take a message string and an optional map. Used to
issue registry warnings. Defaults to `clojure.tools.logging/warn`.
sourceraw docstring

country-id->currencyclj

(country-id->currency)
(country-id->currency registry)
(country-id->currency country-id registry)

Returns the country ID to currency map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the country ID to currency map from a registry. If the registry is not given
the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If it is
not set, current state of a global registry is used instead.
sourceraw docstring

country-id->currency*cljmacro

(country-id->currency*)
(country-id->currency* registry)
(country-id->currency* country registry)

Returns the country ID to currency map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the country ID to currency map from a registry. If the registry is not given
the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If it is
not set, current state of a global registry is used instead.
sourceraw docstring

currency-code->currenciesclj

(currency-code->currencies)
(currency-code->currencies registry)
(currency-code->currencies code registry)

Returns the currency short-code to currencies map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency short-code to currencies map from a registry. If the registry
is not given the dynamic variable `io.randomseed.bankster.registry/*default*` is
tried. If it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-code->currencies*cljmacro

(currency-code->currencies*)
(currency-code->currencies* registry)
(currency-code->currencies* code registry)

Returns the currency short-code to currencies map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency short-code to currencies map from a registry. If the registry
is not given the dynamic variable `io.randomseed.bankster.registry/*default*` is
tried. If it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->country-idsclj

(currency-id->country-ids)
(currency-id->country-ids registry)
(currency-id->country-ids id registry)

Returns the currency ID to country IDs map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to country IDs map from a registry. If the registry is not
given the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If
it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->country-ids*cljmacro

(currency-id->country-ids*)
(currency-id->country-ids* registry)
(currency-id->country-ids* id registry)

Returns the currency ID to country IDs map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to country IDs map from a registry. If the registry is not
given the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If
it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->currencyclj

(currency-id->currency)
(currency-id->currency registry)
(currency-id->currency id registry)

Returns the currency ID to currency map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to currency map from a registry. If the registry is not
given the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If
it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->currency*cljmacro

(currency-id->currency*)
(currency-id->currency* registry)
(currency-id->currency* id registry)

Returns the currency ID to currency map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to currency map from a registry. If the registry is not
given the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If
it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->localizedclj

(currency-id->localized)
(currency-id->localized registry)
(currency-id->localized id registry)

Returns the currency ID to localized properties map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to localized properties map from a registry. If the registry
is not given the dynamic variable `io.randomseed.bankster.registry/*default*` is
tried. If it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->localized*cljmacro

(currency-id->localized*)
(currency-id->localized* registry)
(currency-id->localized* id registry)

Returns the currency ID to localized properties map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to localized properties map from a registry. If the registry
is not given the dynamic variable `io.randomseed.bankster.registry/*default*` is
tried. If it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->traitsclj

(currency-id->traits)
(currency-id->traits registry)
(currency-id->traits id registry)

Returns the currency ID to traits map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to traits map from a registry. If the registry is not given
the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If it is
not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->traits*cljmacro

(currency-id->traits*)
(currency-id->traits* registry)
(currency-id->traits* id registry)

Returns the currency ID to traits map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to traits map from a registry. If the registry is not given
the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If it is
not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->weightclj

(currency-id->weight)
(currency-id->weight registry)
(currency-id->weight id registry)

Returns the currency ID to weight map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to weight map from a registry. If the registry is not given
the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If it is
not set, current state of a global registry is used instead.
sourceraw docstring

currency-id->weight*cljmacro

(currency-id->weight*)
(currency-id->weight* registry)
(currency-id->weight* id registry)

Returns the currency ID to weight map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency ID to weight map from a registry. If the registry is not given
the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If it is
not set, current state of a global registry is used instead.
sourceraw docstring

currency-nr->currenciesclj

(currency-nr->currencies)
(currency-nr->currencies registry)
(currency-nr->currencies nr registry)

Returns the currency number to currencies map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency number to currencies map from a registry. If the registry is
not given the dynamic variable `io.randomseed.bankster.registry/*default*` is
tried. If it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-nr->currencies*cljmacro

(currency-nr->currencies*)
(currency-nr->currencies* registry)
(currency-nr->currencies* nr registry)

Returns the currency number to currencies map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency number to currencies map from a registry. If the registry is
not given the dynamic variable `io.randomseed.bankster.registry/*default*` is
tried. If it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-nr->currencyclj

(currency-nr->currency)
(currency-nr->currency registry)
(currency-nr->currency nr registry)

Returns the currency number to currency map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency number to currency map from a registry. If the registry is not
given the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If
it is not set, current state of a global registry is used instead.
sourceraw docstring

currency-nr->currency*cljmacro

(currency-nr->currency*)
(currency-nr->currency* registry)
(currency-nr->currency* nr registry)

Returns the currency number to currency map from a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns the currency number to currency map from a registry. If the registry is not
given the dynamic variable `io.randomseed.bankster.registry/*default*` is tried. If
it is not set, current state of a global registry is used instead.
sourceraw docstring

default-versionclj

(default-version)
source

extclj

(ext)
(ext registry)
(ext k registry)

Returns extra data map of a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns extra data map of a registry. If the registry is not given the dynamic
variable `io.randomseed.bankster.registry/*default*` is tried. If it is not set,
current state of a global registry is used instead.
sourceraw docstring

ext*cljmacro

(ext*)
(ext* registry)
(ext* k registry)

Returns extra data map of a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns extra data map of a registry. If the registry is not given the dynamic
variable `io.randomseed.bankster.registry/*default*` is tried. If it is not set,
current state of a global registry is used instead.
sourceraw docstring

getcljmacro

(get)
(get registry)

Without arguments it gets a current state of a global registry. If the dynamic variable io.randomseed.bankster.registry/*default* is set to a truthy value, it will be used instead.

When a registry argument is provided it will be tried before using a dynamic or a global registry, unless its value is nil or false.

When the literal true is provided, it acts as a sentinel meaning: use the default registry. Caution: this works only on syntactic level.

Without arguments it gets a current state of a global registry. If the dynamic
variable `io.randomseed.bankster.registry/*default*` is set to a truthy value, it
will be used instead.

When a `registry` argument is provided it will be tried before using a dynamic or a
global registry, unless its value is `nil` or `false`.

When the literal `true` is provided, it acts as a sentinel meaning: use the default
registry. Caution: this works only on syntactic level.
sourceraw docstring

globalclj

(global)

Returns global registry object.

Returns global registry object.
sourceraw docstring

hierarchiesclj

(hierarchies)
(hierarchies registry)
(hierarchies k registry)

Returns hierarchies map of a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns hierarchies map of a registry. If the registry is not given the dynamic
variable `io.randomseed.bankster.registry/*default*` is tried. If it is not set,
current state of a global registry is used instead.
sourceraw docstring

hierarchies*cljmacro

(hierarchies*)
(hierarchies* registry)
(hierarchies* k registry)

Returns hierarchies map of a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

When k is given the macro will extract a specific hierarchy from a record field. it should be a simple keyword. If it is a constant form of a keyword field-access byte code will be generated.

Returns hierarchies map of a registry. If the registry is not given the dynamic
variable `io.randomseed.bankster.registry/*default*` is tried. If it is not set,
current state of a global registry is used instead.

When `k` is given the macro will extract a specific hierarchy from a record
field. it should be a simple keyword. If it is a constant form of a keyword
field-access byte code will be generated.
sourceraw docstring

hierarchyclj

(hierarchy k)
(hierarchy k registry)

Returns a hierarchy identified by the given key k in a registry. The key should be a keyword. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

For static keywords it is advised to use hierarchy* macro whenever possible as it compiles to a field-access byte code.

Returns a hierarchy identified by the given key `k` in a `registry`. The key should
be a keyword. If the registry is not given the dynamic variable
`io.randomseed.bankster.registry/*default*` is tried. If it is not set, current
state of a global registry is used instead.

For static keywords it is advised to use `hierarchy*` macro whenever possible as it
compiles to a field-access byte code.
sourceraw docstring

hierarchy*cljmacro

(hierarchy* k)
(hierarchy* k registry)

Returns a hierarchy identified by the given key k in a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

When k is given it should be a simple keyword. If it is a constant form of a keyword field-access byte code will be generated.

Returns a hierarchy identified by the given key `k` in a `registry`. If the registry
is not given the dynamic variable `io.randomseed.bankster.registry/*default*` is
tried. If it is not set, current state of a global registry is used instead.

When `k` is given it should be a simple keyword. If it is a constant form of a
keyword field-access byte code will be generated.
sourceraw docstring

hierarchy-deriveclj

(hierarchy-derive hierarchy-name tag parent registry)

Returns registry updated by deriving tag from parent inside a hierarchy identified by hierarchy-name.

Returns `registry` updated by deriving `tag` from `parent` inside a hierarchy
identified by `hierarchy-name`.
sourceraw docstring

hierarchy-derive!clj

(hierarchy-derive! hierarchy-name tag parent)

Updates global registry by deriving tag from parent inside a hierarchy identified by hierarchy-name.

Updates global registry by deriving `tag` from `parent` inside a hierarchy
identified by `hierarchy-name`.
sourceraw docstring

inconsistency-warningcljmacro

(inconsistency-warning ex-message ex-data & body)

Wrapper that displays an inconsistency warning when io.randomseed.bankster.registry/*warn-on-inconsistency* is truthy. Uses io.randomseed.bankster.registry/*warnings-logger* function and passes message and data to it. Always evaluates body in an implicit do.

Wrapper that displays an inconsistency warning when
`io.randomseed.bankster.registry/*warn-on-inconsistency*` is truthy. Uses
`io.randomseed.bankster.registry/*warnings-logger*` function and passes message and
data to it. Always evaluates body in an implicit do.
sourceraw docstring

newclj

(new)
(new m)
(new cur-id->cur
     ctr-id->cur
     cur-id->localized
     cur-id->traits
     cur-id->weight
     cur-code->curs
     cur-nr->curs)
(new cur-id->cur
     ctr-id->cur
     cur-id->localized
     cur-id->traits
     cur-id->weight
     cur-code->curs
     cur-nr->curs
     cur-hierarchies
     version)
(new cur-id->cur
     cur-nr->cur
     ctr-id->cur
     cur-id->ctr-ids
     cur-id->localized
     cur-id->traits
     cur-id->weight
     cur-code->curs
     cur-nr->curs
     cur-hierarchies)
(new cur-id->cur
     cur-nr->cur
     ctr-id->cur
     cur-id->ctr-ids
     cur-id->localized
     cur-id->traits
     cur-id->weight
     cur-code->curs
     cur-nr->curs
     cur-hierarchies
     version)

Alias for new-registry.

Alias for new-registry.
sourceraw docstring

new-registryclj

(new-registry)
(new-registry m)
(new-registry cur-id->cur
              ctr-id->cur
              cur-id->localized
              cur-id->traits
              cur-id->weight
              cur-code->curs
              cur-nr->curs)
(new-registry cur-id->cur
              ctr-id->cur
              cur-id->localized
              cur-id->traits
              cur-id->weight
              cur-code->curs
              cur-nr->curs
              cur-hierarchies
              version)
(new-registry cur-id->cur
              cur-nr->cur
              ctr-id->cur
              cur-id->ctr-ids
              cur-id->localized
              cur-id->traits
              cur-id->weight
              cur-code->curs
              cur-nr->curs
              cur-hierarchies)
(new-registry cur-id->cur
              cur-nr->cur
              ctr-id->cur
              cur-id->ctr-ids
              cur-id->localized
              cur-id->traits
              cur-id->weight
              cur-code->curs
              cur-nr->curs
              cur-hierarchies
              version)

Creates a new registry.

Creates a new registry.
sourceraw docstring

Rclj

Global registry object based on an Atom.

Global registry object based on an Atom.
sourceraw docstring

registry?clj

(registry? obj)

Returns true if the given object is a registry.

Returns true if the given object is a registry.
sourceraw docstring

set!clj

(set! registry)

Sets current state of a global registry.

Sets current state of a global registry.
sourceraw docstring

stateclj

(state)

Returns current state of a global registry.

Returns current state of a global registry.
sourceraw docstring

updateclj

(update r fun & more)

Updates a registry with a function that should take a registry as its first argument and return the updated one. It is a simple apply-based implementation provided for the sake of symmetry with update! which operates on a global registry object.

Updates a registry with a function that should take a registry as its first argument
and return the updated one. It is a simple apply-based implementation provided for
the sake of symmetry with update! which operates on a global registry object.
sourceraw docstring

update!clj

(update! fun & more)

Updates a global registry using a function that should take a registry and return the updated version of it.

Updates a global registry using a function that should take a registry and return
the updated version of it.
sourceraw docstring

versionclj

(version)
(version registry)

Returns a version string of a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns a version string of a registry. If the registry is not given the dynamic
variable `io.randomseed.bankster.registry/*default*` is tried. If it is not set,
current state of a global registry is used instead.
sourceraw docstring

version*cljmacro

(version*)
(version* registry)

Returns a version string of a registry. If the registry is not given the dynamic variable io.randomseed.bankster.registry/*default* is tried. If it is not set, current state of a global registry is used instead.

Returns a version string of a registry. If the registry is not given the dynamic
variable `io.randomseed.bankster.registry/*default*` is tried. If it is not set,
current state of a global registry is used instead.
sourceraw docstring

withcljmacro

(with registry & body)

Sets a registry in a lexical context of the body to be used instead of a global one in functions which require the registry and it was not passed as an argument.

Sets a registry in a lexical context of the body to be used instead of a global one
in functions which require the registry and it was not passed as an argument.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close