w*r 发帖数: 2421 | |
m******y 发帖数: 102 | 2 哦 支持你一下
不过没用过 1.5开始的新东西都没用过
【在 w*r 的大作中提到】 : 真是一鸡肋,用起来无比别扭!
|
m******t 发帖数: 2416 | 3 I think it's a good thing, but overused and abused to death. A lot of
people seem to keep forgetting "configuration != metadata". |
L*********r 发帖数: 92 | 4 Agree.
It is very useful in one of my component to support third party info store.
【在 m******t 的大作中提到】 : I think it's a good thing, but overused and abused to death. A lot of : people seem to keep forgetting "configuration != metadata".
|
L*********r 发帖数: 92 | 5 Forget to mention, my component is implemented in C#. attribute is the term
in c#.
annotation(metadata) will change the way you program.
for example, in order to specify your java class serializable. you can do it
with annotation.
@serializable
public class xxx |
t****r 发帖数: 25 | 6 experienced using it with testNG and AspectJ. so far so good as long as no
abusing. hehe.
【在 w*r 的大作中提到】 : 真是一鸡肋,用起来无比别扭!
|
w*r 发帖数: 2421 | 7 唉,偶还是喜欢POJO的东西,至少看起来有头绪,这些annotation应该是了解了是如何转
变成POJO之后的一个shortcut,可以用来减少coding的量,但是这种技术的产生就决定了
新学的人就不再关心背后的实际意义,拿来用而已,等于多学几个语法规则.很明显的例
子就是jsp中用一堆奇怪的tag/tag library, 用scriptlet..而真正jsp和servlet之间
一致性就不再关心了,这些个号称会写jsp/servlet的programmer很多都不知两者其实是
一个东西,用中文说就是知其然而不知其所以然了
【在 t****r 的大作中提到】 : experienced using it with testNG and AspectJ. so far so good as long as no : abusing. hehe.
|
p***p 发帖数: 559 | 8 各位老大,我现在要implement一个API,是带这个annotation的,请问
怎么弄,和以前的API有什么区别。
我觉得这个东西把JAVA程序搞地跟shell一样乱七八糟的,不堪入目 |
w*r 发帖数: 2421 | 9 //hand...我也是这么认为!!!!!太TMD无耻了
【在 p***p 的大作中提到】 : 各位老大,我现在要implement一个API,是带这个annotation的,请问 : 怎么弄,和以前的API有什么区别。 : 我觉得这个东西把JAVA程序搞地跟shell一样乱七八糟的,不堪入目
|
wy 发帖数: 14511 | 10 well, at least with @Test with new junit, the test method names are so
much more clear. keke
【在 w*r 的大作中提到】 : 真是一鸡肋,用起来无比别扭!
|
B******N 发帖数: 445 | 11 等你用ejb3,跟ejb2比较起来你就会appreciate it啦。
你可以完全开发POJO,然后加上annotation,再refactor a little bit。就变成一个
j2ee service啦。no boilerplate code啦。
【在 w*r 的大作中提到】 : 真是一鸡肋,用起来无比别扭!
|
w*r 发帖数: 2421 | 12 正在用EJB3, 还是喜欢自己写一堆code/config, 不喜欢用别人给generate出来的东西
【在 B******N 的大作中提到】 : 等你用ejb3,跟ejb2比较起来你就会appreciate it啦。 : 你可以完全开发POJO,然后加上annotation,再refactor a little bit。就变成一个 : j2ee service啦。no boilerplate code啦。
|