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.
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?
Source Code for PerMethodSubTask
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