Results 1 to 6 of 6

Thread: Is anybody know what is XDoclet?

  1. #1
    Join Date
    Dec 2009
    Posts
    41

    Is anybody know what is XDoclet?

    Hello guys,

    From few day I trying to understand one concept known as XDoclet. I don't know anything about the 'XDoclet' concept. Is anybody knows what is 'XDoclet'?What are it's advantages of XDoclet?. I don't know how to proceed.
    Please let me aware about the 'XDoclet' concept. I would greatly appreciate you any help over this.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: Is anybody know what is XDoclet?

    XDoclet is used to parse source files as well to generate various artifacts for e.g XML descriptors and source code from it. These code files are normally generated from many templates that provided in the JavaDoc tag and source code. XDoclet is nothing but open source code generation engine. XDoclet enables Attribute Oriented Programming for java language. That is we can add more significance to your code by adding meta data to our java sources. This is done in special JavaDoc tags.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Is anybody know what is XDoclet?

    Following are some advantages of XDoclet:
    • XDoclet very essential to eliminate "boiler plate" or redundant work.
    • XDoclet used identifies repeatable code in application and to write XDoclet templates for generating them
    • XDoclet has support to several JDO vendors, IBM WebSphere, JBoss, Hibernate, MockObjects, Struts.
    • Modular design of XDoclet very useful to write your own modules.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Is anybody know what is XDoclet?

    Hi, below is the example of XDoclet comment:
    Code:
    <path id="project.class.path">
        <fileset dir="${lib.dir}">
            <include name="*.jar"/>
        </fileset>
    </path>
    
    <target name="ejbdoclet1" depends="prepare1">
        <taskdef
            name="ejbdoclet1"
            classname="xdoclet.modules.ejb.EjbDocletTask"
            classpathref="project.class.path"
        />
    
        <tstamp>
            <format property="TODAY1" pattern="d-MM-yy"/>
        </tstamp>
    
        <ejbdoclet
            destdir="${generated.java.dir}"
            excludedtags="@version,@author"
            addedtags="@xdoclet-generated at ${TODAY}"
            ejbspec="2.0">
            
            <remoteinterface pattern="{0}Remote"/>
            <localinterface pattern="{0}"/>
    
            <homeinterface />
            <localhomeinterface/>
    
            <entitypk/>
            <entitycmp/>
    
            <deploymentdescriptor destdir="${build.dir}/ejb/META-INF"/>
            <jboss version="3.0"
                securityDomain="java:/jaas/samples"
                preferredRelationMapping="relation-table"
                datasource="java:/DefaultDS"
                datasourcemapping="Hypersonic SQL"
                destdir="${build.dir}/ejb/META-INF"
            />
        </ejbdoclet>
    </target>
    
    <target name="compile1" depends="ejbdoclet1">
    
       <javac
           srcdir="${java.dir}:${generated.java.dir}"
           destdir="${build.dir}/ejb"
           includes="test/ejb/*.java, test/interfaces/*.java"
       >
    </target>

  5. #5
    Join Date
    May 2008
    Posts
    2,012

    Re: Is anybody know what is XDoclet?

    "XDoclet" is nothing but open source code generation engine. This generation engine enables Attribute Oriented Programming of the java.
    It parse file of source and then generate artifacts such as descriptors of XML. Using this we are able to add your code by adding attributes i.e meta data into the java sources. There are special tags are used for this process which are known as JavaDoc tags.

  6. #6
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Is anybody know what is XDoclet?

    XDoclet concept can only used as part of build process utilization. Basically the XDoclet available with generation modules sets of the different types of files. We get the option to extend the functionality of 'XDoclet'. Although XDoclet is basically originated as a tool for creating EJBs, it also has evolved into a general-purpose code generation engine. XDoclet consists of a core and a constantly growing number of modules. It is fairly straightforward to write new modules if there is a need for a new kind of component.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,718,136,773.65836 seconds with 15 queries