- 319 名前:デフォルトの名無しさん mailto:sage [2011/09/05(月) 14:56:17.86 .net]
- Cubbyというフレームワークの資料に
ttp://event.seasarfoundation.org/sc2009spring/viewAttachment.do?_pageName_=Session&_fileName_=sc2009spring_s603_2_cubby_in_action.pdf 10ページにこんなコードがありました。 @Path("todo") public class ToDoAction extends Action{ // /todo/new public ActionResult new(){...} public Integer id; // /todo/100 @Path("{id,[0-9]+}") public ActionResult index(){} } これを見ると、「new()」というメソッドを定義しています。 しかしJavaではnewは予約語なので、このようなメソッドは定義できないのではないでしょうか。 Cubbyではどのような仕組みで「new()」メソッドを定義しているのか、知っている人がいれば教えて下さい。
|

|