2011/1/5 Thilina Piyasundara <thilina...@gmail.com>

> I need to know the way we can write a clojure code for a program like
> this.
>
> ---------------------------------------
> 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 <? extends Application > getApplicationClass()
>            throws ClassNotFoundException {
>        return Application.class;
>    }
> ...
> ------------------------------------
>
> I don't know how to write this method in Clojure. Please can some one
> write this in clojure.
>


(ns app.Clojure4Vaadin
  (:import com.vaadin.Application)
  (:gen-class
    :extends com.vaadin.terminal.gwt.server.AbstractApplicationServlet))

(defn -getApplicationClass [this] Application)

HTH,

-- 
Laurent

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to