??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品一区二区99,亚洲精品午夜,亚洲成人黄色http://www.aygfsteel.com/ldd600/category/30020.html路O漫其修远兮,向ְ上下而求?/description>zh-cnSat, 24 May 2008 10:15:56 GMTSat, 24 May 2008 10:15:56 GMT60如何d自定义的Annotationhttp://www.aygfsteel.com/ldd600/articles/188132.html叱咤Uh叱咤UhMon, 24 Mar 2008 01:15:00 GMThttp://www.aygfsteel.com/ldd600/articles/188132.htmlhttp://www.aygfsteel.com/ldd600/comments/188132.htmlhttp://www.aygfsteel.com/ldd600/articles/188132.html#Feedback0http://www.aygfsteel.com/ldd600/comments/commentRss/188132.htmlhttp://www.aygfsteel.com/ldd600/services/trackbacks/188132.html当我们编写了自定义的annotation我们需要在E序中去讉Kq些annotation。读?/span>annotation的方法大概分Z?/span>3U:

常规工具Q是一些可以分析源代码的工Pq且做一些相兛_理。比如编译器和文生器都属于这一cR常规工具不load 被注释的cd注释接口到虚拟机中。只是在源代码别进行分析和处理?/span>

特定工具Q也是一些可以分析源代码的工P但是需要装载注释接口到虚拟ZQ比?/span>stub产生器?/span>

反省Q是一些可以在q行时获取自q注释的程序,q些注释?/span>retentionpolicy?/span>runtime。反省需要装载被注释的类和注释接口到虚拟Z?/span>

常规工具Q新?/span>Doclet API(com.sun.javadoc), APT{?/span>

特定工具Q?/span>JSR-269((Pluggable Annotation Processing API), 一?/span>code generation framework?/span>ASM(AnnotationVisistor), javaassist(AnnotationsAttribute), BECL{都可以在这个别获取注释?/span>

反省Q?/span>java反射?/span>AOP.



叱咤Uh 2008-03-24 09:15 发表评论
]]>
վ֩ģ壺 | ̷| | | | | ƺ| Ȫ| ǭ| ҵ| | | | | | | | ³ɽ| Ž| | | ƽ| | żҸ| Т| | | | | ˮ| | «| | | ˳| | Ž| ξ| ʯ| ˮ| Ƹ|