Let XDoclet write the stub class for you

Source: Internet
Author: User

 

WriteThe EJB and RMI stubs and other classes are often annoying and monotonous for the normal operation of virtual machines. Once the host class is changed, you must modify the stub code in addition to the code. XDoclet provides a good solution.

XDoclet and ant are integrated and run at compile time through ant custom labels. You can use these labels like other Ant tasks.

To use XDoclet, you must add custom Javadoc labels to the code. When XDoclet is running, it will interpret these as class attributes and use them to generate source code.

To change these attributes, you need to change the labels corresponding to XDoclet. The next time you compile your program, these changes will be reflected in your new stub class. That is to say, you only need to manage your EJB in one place, and the whole process becomes more efficient.

XDoclet can not only generate code for EJB, but also do the same work for Hibernate, JBoss, WebSphere, BEA, JMX, JDO, and other components and software. XDoclet has become a common code generation tool.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.