Just some helpers.
Just some helpers.
(->java-bean class-spec props)
Creates and returns instance of class-typed class-spec
and sets
Java-Bean properties via setters from props
map. Setter-method
names are derived from map keys by camel-casing foo-bar
to
setFooBar
. Map values have to be type-conforming (no conversion is
done).
Creates and returns instance of class-typed `class-spec` and sets Java-Bean properties via setters from `props` map. Setter-method names are derived from map keys by camel-casing `foo-bar` to `setFooBar`. Map values have to be type-conforming (no conversion is done).
(jndi-lookup jndi)
Looks up entry in JNDI and returns it. Throws if entry cannot be found.
Looks up entry in JNDI and returns it. Throws if entry cannot be found.
(with-tccl cl & body)
Thread-locally binds clojure.core/*use-context-classloader*
to
true
, sets the current thread's context classloader to cl
and
executes body
within that context. On completion restores the
context classloader and pops
clojure.core/*use-context-classloader*
to the previous
value. Returns value of body
evaluation.
Thread-locally binds `clojure.core/*use-context-classloader*` to `true`, sets the current thread's context classloader to `cl` and executes `body` within that context. On completion restores the context classloader and pops `clojure.core/*use-context-classloader*` to the previous value. Returns value of `body` evaluation.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close