Write this java source in Clojure

Posted by tikky on Programmers See other posts from Programmers or by tikky
Published on 2011-01-05T07:51:54Z Indexed on 2011/01/05 7:57 UTC
Read the original article Hit count: 327

Filed under:
|
|
|

Need to write this code in clojure....
package com.example.testvaadin; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import clojure.lang.RT; import com.vaadin.Application; import com.vaadin.terminal.gwt.server.AbstractApplicationServlet;
public class Clojure4Vaadin extends AbstractApplicationServlet { @Override protected Class getApplicationClass()throws ClassNotFoundException { return Application.class; } @Override protected Application getNewApplication(HttpServletRequest request) throws ServletException { try { RT.load(getServletConfig().getInitParameter("script-name"), true); return (Application)RT.var(getServletConfig().getInitParameter("package-name"),getServletConfig().getInitParameter("function-name")).invoke(new String[0]); } catch (Exception e) { throw new ServletException(e); } } }

© Programmers or respective owner

Related posts about java

Related posts about web-applications