Menu

#81 PerMethodSubTask

open
nobody
xdoclet (14)
5
2002-09-27
2002-07-22
No

This SubTask can be used in instances where you
need to generate artifacts for each method in a
class. I'm using this to generate message
structures that correspond to each method in a
service interface. Other areas it could be used are
generating JSP pages to test each method on a
service, for example.

Discussion

  • Andy Stevens

    Andy Stevens - 2002-09-27
    • status: open --> pending
     
  • Andy Stevens

    Andy Stevens - 2002-09-27

    Logged In: YES
    user_id=247081

    Er, there's no file attached...
    Have you got one to upload, or should I change this from a
    Patch item to a Feature Request?

     
  • Marc Breslow

    Marc Breslow - 2002-09-27

    Source Code for PerMethodSubTask

     
  • Marc Breslow

    Marc Breslow - 2002-09-27

    Logged In: YES
    user_id=34612

    Use instances of the attached class in a DocletTask as
    follows:
    public SubTask createPerMethodSubTasks()
    {
    PerMethodSubTask t = (PerMethodSubTask)
    createDynamicElement( "permethod-subtask" );
    t.addPerMethodTask( createReq() );
    t.addPerMethodTask( createReply() );
    t.setHavingClassTag( REQUIRED_CLASS_TAG );
    return t;
    }

    private void createSubTasks()
    {
    createPerMethodSubTasks();
    addTemplate( createSvcProps() );
    addTemplate( createSvcAdapter() );
    }

    createReq() and createReply() return template subtasks.
    Let me know if you need any help understanding the
    implementation. It's working well for our project, but it
    hasn't been tested with scenarios that we're not using.
    ---Marc

     
  • Marc Breslow

    Marc Breslow - 2002-09-27
    • status: pending --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.