proxy and annotation

85 views
Skip to first unread message

ngocdaothanh

unread,
Aug 24, 2009, 3:10:57 AM8/24/09
to Clojure
Hi,

How can I define annotation for a proxy?

For example:

Java code:

http://viewvc.jboss.org/cgi-bin/viewvc.cgi/netty/trunk/src/main/java/org/jboss/netty/example/http/snoop/HttpResponseHandler.java?view=markup

Clojure code:

(def handler
(proxy [SimpleChannelUpstreamHandler] []
(messageReceived [ctx e]
((.println System/out) "hello"))))

How can I set @ChannelPipelineCoverage("one") for the "handler"
proxy?

Thanks.

Mark Derricutt

unread,
Aug 24, 2009, 9:27:41 PM8/24/09
to clo...@googlegroups.com
Currently clojure doesn't support annotations, which is a huge issue at times when integrating with some newer java frameworks.

I'm not sure if anyones working on it yet either, and to be honest I'm not even sure what syntax would work well - something encoded in the metadata woud be good I guess.

--
Reply all
Reply to author
Forward
0 new messages