Tasks.

16 views
Skip to first unread message

jdbj...@gmail.com

unread,
Dec 20, 2010, 4:08:57 PM12/20/10
to caelum-v...@googlegroups.com
Hey guys,
Is there any development task that I could help on the vraptor issues?

Thanks.

Guilherme Silveira

unread,
Dec 21, 2010, 9:37:54 AM12/21/10
to caelum-v...@googlegroups.com
Hi Doni,

As we spoke today, there is the inniciative to generalize the ruby
tokamak language to be supported in Java too. The first step is to
create a new marshaller on the client side, then support jruby, then
eval the tokamak script using Restfulie. As soon as its working we can
extract tokamak.


Our annotations follow:


recurso.link("order").follow().post(order);

serializer = map(content type)
serializer.serialize(obj)

recurso.link("order").follow().post(order);
XmlSerializer

context = new jrubycontext
context.eval("restfulie.rb")
context.set(Class.getSimpleName(), obj)
String xml = context.eval(Class.getSimpleName() + ".to_xml.rb")

member(order) do
price = order.price
collection(order.products) do |product|
id = product.id
end
end
<order>
<price>...
<products>
<product>
<id>
</product>
</products>
</order>

Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/

Reply all
Reply to author
Forward
0 new messages