" >
站内搜索: 请输入搜索关键词

当前页面: 开发资料首页业界新闻DWR 2.0M2 增加支持 annotation

DWR 2.0M2 增加支持 annotation

摘要: Maik Schreiber 之前提到 在DWR 2.0M2版本中 增加了annotation support 。DWR中一些使用annotation 的地方......
Maik Schreiber 之前提到 在DWR 2.0M2版本中 增加了annotation support 。

DWR中一些使用annotation 的地方:

//To make a simple class available for remote access, use the @Create and @RemoteMethod annotations:
@Createpublic class RemoteFunctions
{
@RemoteMethod
public int calculateFoo() {
return 42;
}
}



//To make simple bean classes available for remote access, use the @Convert and @RemoteProperty annotations:
@Convertpublic class Foo {
@RemoteProperty private int foo;
public int getFoo() {
return foo;
}
@RemoteProperty
public int getBar() {
return foo * 42;
}
}


对于这种对annotations的用法,你如何看待呢?

官方站点:
http://getahead.ltd.uk/dwr/server/annotations

AJAX论坛:
http://www.matrix.org.cn/topic.shtml?forumId=41
↑返回目录
前一篇: jBixbe 1.0-alpha 发布 -- Java 调试器
后一篇: Aranea Web Framework 1.0 M3 发布