
clojure.plexus.factory.ClojureLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clojure-maven-plexus-component-factory Show documentation
Show all versions of clojure-maven-plexus-component-factory Show documentation
Plexus component factory for clojure components
The newest version!
package clojure.plexus.factory;
import java.io.IOException;
import clojure.lang.RT;
import clojure.lang.Var;
public class ClojureLoader
{
static public Object instantiate(String implementation) throws Exception
{
Var require = RT.var("clojure.core", "require");
Var symbol = RT.var("clojure.core", "symbol");
require.invoke(symbol.invoke("clojure.plexus.factory.component-factory"));
Var instantiate = RT.var(
"clojure.plexus.factory.component-factory", "instantiate");
return instantiate.invoke(implementation);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy