当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: This article introduces readers
 

 

    摘要:reation of web service applications is yet another complex task to add to the it departments list. experience suggests it is not enough to approach web services development armed with documentation on......
 ·xdoclet是什么?    »显示摘要«
    摘要:本文的目的是让你用最短的时间了解xdoclet技术,本人并未对其作深入的研究,若理解有误请指正。 xdoclet是一个开源项目,可以从这里得到他:http://xdoclet.sourceforge.net/xdoclet/ 。 xdoclet可以通过你在java源代码中的一些特殊的注释信息,自动为你生成配置文件、源代码等等,例如web、ejb的部署描述文件、为你生成struts的stru......


Bytecode Generation Tips and Tricks @ JDJ

this article introduces readers to bytecode generation and shows how to inject generated bytecode into a jvm runtime. after reading this article generating a java class wont be any harder than creating an xml document with the dom api.

over last couple of years, bytecode generation has gained significant momentum. many tools generate bytecode instead of source code to obviate the compilation step and simplify the injection of generated code at runtime.

theres a number of bytecode-generation libraries with bcel (byte code generation library) being the most renown and probably most powerful. its used by tools such as xalans stylesheet compiler and mercury interactives topaz j2ee probe.

bytecode vs source generation

you may ask: "why bother with bytecode generation if i can produce java source?" ultimately, its your call what technique to use. for example, some people create xml documents with println(), others use the dom api. keep the following considerations in mind: with jad, jadclipse or dj java decompiler (see resources) a .class file is an open book as .java file. but read-only. so theres no need in (and actually no place for) formidable headers like "generated by xxx - do not edit!" there is an additional compilation step if you produce source instead of bytecode. compilation at runtime is a real big headache, especially if you dont control the target jvm. the amount of java code you have to write to produce java source wont be significantly less than the amount of java code for bytecode generation. actually, it may be more. using different template engines has its own vices. first of all generation logi
...   下一页
 ·练习rcp遇到的一个问题及思考    »显示摘要«
    摘要:problem description:新建了一个rcp mail的template example,运行正常,但是当我将在另一个rcp工程里建好的view放进来时,工程运行就抛出invalid menu extension (path is invalid): org.eclipse.ui.edit.text.gotolasteditposition,而且菜单和工具栏里多出了一些eclipse自......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE