-
-
Save 4mitch/35feb1cc3a89cf480ed3f85cbbd68b3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nl.avisi.jira; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.DisposableBean; | |
import org.springframework.beans.factory.InitializingBean; | |
import com.atlassian.jira.component.ComponentAccessor; | |
import clojure.java.api.Clojure; | |
import clojure.lang.IFn; | |
public class MyBean implements InitializingBean, DisposableBean { | |
@Override | |
public void afterPropertiesSet() throws Exception { | |
IFn plus = Clojure.var("clojure.core", "+"); | |
Object object = plus.invoke(1, 2); | |
LOGGER.debug("plus invoked, result was: " + object); | |
IFn require = Clojure.var("clojure.core", "require"); | |
require.invoke(Clojure.read("clojure.tools.nrepl.server")); | |
IFn server = Clojure.var("clojure.tools.nrepl.server", "start-server"); | |
server.invoke(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment