You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only documentation is the README file which shows how to start liverepl.
Once started, you should be presented with a Clojure REPL prompt where you can enter and execute Clojure code. Any introductory Clojure tutorial or book should explain.
One of the purposes of liverepl (I guess) is to connect to an existing java application to run custom code without recompiling and restarting it.
; import some custom java class
(import 'a.foo.bar.java.package.SomeJavaClass)
; do something
(deffooclass (new SomeJavaClass))
(.fooMethod fooclass)
; inspect the members of the java class using clojure reflect api
(use 'clojure.reflect 'clojure.pprint)
(pprint (reflect fooclass)) ;
For example, in a Spring based java webapp, it can be used to load custom beans (via the spring context loader) and run arbitrary code at runtime on it. The same can be achieved using JMX, but you would have to annotate the methods to expose and recompile your webapp.
Are there any docs about how to use liverepl?
Than you.
The text was updated successfully, but these errors were encountered: