Liking cljdoc? Tell your friends :D

immutant.util

Various utility functions.

Various utility functions.
raw docstring

app-nameclj

(app-name)

Returns the name of the current application.

Returns the name of the current application.
sourceraw docstring

app-relativecljdeprecated

(app-relative & path)

Returns an absolute file relative to app-root. DEPRECATED: use clojure.java.io/resource instead.

Returns an absolute file relative to [[app-root]].
DEPRECATED: use clojure.java.io/resource instead.
sourceraw docstring

app-rootclj

(app-root)

Returns a file pointing to the root dir of the application. DEPRECATED: use clojure.java.io/resource instead.

Returns a file pointing to the root dir of the application.
DEPRECATED: use clojure.java.io/resource instead.
sourceraw docstring

at-exitclj

(at-exit f)

Registers f to be called when the application is either stopped or, if running within a container, undeployed. Used internally to shutdown various services, but can be used by application code as well.

Registers `f` to be called when the application is either stopped
or, if running within a container, undeployed. Used internally to
shutdown various services, but can be used by application code as
well.
sourceraw docstring

classpathclj

(classpath)

Returns the effective classpath for the application.

Returns the effective classpath for the application.
sourceraw docstring

context-pathclj

(context-path)

Returns the over-arching context-path for the web server.

Returns the servlet-context's context path in-container, and "" outside.

Returns the over-arching context-path for the web server.

Returns the servlet-context's context path in-container, and ""
outside.
sourceraw docstring

dev-mode?clj

(dev-mode?)

Returns true if the app is running in dev mode.

This is controlled by the LEIN_NO_DEV environment variable.

Returns true if the app is running in dev mode.

This is controlled by the `LEIN_NO_DEV` environment variable.
sourceraw docstring

http-portclj

(http-port)
(http-port options)

Returns the HTTP port for the embedded web server.

Returns the correct port when in-container, and the :port value from options or the default (8080) outside.

Returns the HTTP port for the embedded web server.

 Returns the correct port when in-container, and the :port value from
options or the default (8080) outside.
sourceraw docstring

in-cluster?clj

(in-cluster?)

Returns true if running inside a WildFly/EAP container that's part of a cluster

Returns true if running inside a WildFly/EAP container that's part of a cluster
sourceraw docstring

in-container?clj

(in-container?)

Returns true if running inside a WildFly/EAP container.

Returns true if running inside a WildFly/EAP container.
sourceraw docstring

in-eap?clj

(in-eap?)

Returns true if running inside an EAP container.

Returns true if running inside an EAP container.
sourceraw docstring

messaging-remoting-portclj

(messaging-remoting-port)

Returns the port that HornetQ is listening on for remote connections.

Returns the correct port when in-container, and the default (5445), outside.

Returns the port that HornetQ is listening on for remote connections.

Returns the correct port when in-container, and the default (5445),
outside.
sourceraw docstring

resetclj

(reset)

Resets the underlying WunderBoss layer. This stops and clears all services. Intended to be used from a repl or from tests.

Resets the underlying WunderBoss layer.
This stops and clears all services. Intended to be used from a repl or from tests.
sourceraw docstring

reset-fixtureclj

(reset-fixture f)

Invokes f, then calls reset if not in-container?.

Useful as a test fixture where you want to reset underlying state after a test run, but also run the same tests in-container (via fntest or other), where resetting state will disconnect the repl. In the in-container case, you rely on undeploy to reset the state.

Invokes `f`, then calls [[reset]] if not [[in-container?]].

Useful as a test fixture where you want to reset underlying state
after a test run, but also run the same tests in-container (via fntest
or other), where resetting state will disconnect the repl. In the
in-container case, you rely on undeploy to reset the state.
sourceraw docstring

set-bean-propertyclj

(set-bean-property bean prop value)

Calls a java bean-style setter (.setFooBar) for the given property (:foo-bar) and value.

Calls a java bean-style setter (.setFooBar) for the given property (:foo-bar) and value.
sourceraw docstring

set-log-level!clj

(set-log-level! level)

Sets the global log level for the interal logging system.

Valid options for level are: :OFF, :ERROR, :WARN, :INFO, :DEBUG, :TRACE, :ALL

Sets the global log level for the interal logging system.

Valid options for `level` are: :OFF, :ERROR, :WARN, :INFO, :DEBUG, :TRACE, :ALL
sourceraw docstring

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

× close