On Tue, 4 Dec 2001, Ben Johnson wrote:

> I'm experimenting with some new beans in the xdoclet paradigm.  I am not 
> enamored with the data object pattern and would like to not generate the 
> dataobjects.  It seems I can turn this off by using
>     @ejb:data-object container="false"
>  From what I can tell inspecting the code, the template engine should 
> crawl up the inheritance looking for tags, so that if I I specify that 
> line in the superclass of the bean class, the data object would not get 
> generated for the child.  That is not the behavior - I have to put that 
> line in the subclass.  Am I doing something wrong, or is this a 
> bug/feature?

doesn't sound right... it should crawl up the code, although I made a
change to this last week, where if you had something like:

/**
 * @foo:bar value="abc"
 */
class SuperClass ....

and

/**
 * @foo:bar something_other_than_value="def"
 */
class SubClass extends SuperClass ...

then the super's value="abc" wasn't picked up...  I thought I checked this
properly, but there is I suppose the possibility that I introduced a bug.  

Do you have a simple example of the bug?

> And now for the suggestion.  I'm really positive about using xdoclet for 
> an upcoming rewrite of our app, and I'm doing a bunch of groundwork to 
> establish conventions and techniques.  I would like to see xdoclet take 
> a strategy of least-invasiveness in its generation.  For instance, the 
> package substitution (moving interfaces into .interfaces if the bean was 
> defined in .ejb) was on by default, forcing people to add tons of tags 
> to their code if their conventions differed from this builtin behavior.  
> (It's now off, which is a good thing.)  I believe this should be 
> extended across the utility, where the ant subtasks avoids nonstandard 
> things, unless explicitly enabled.

what do you mean by nonstandard things?  the ejb and interfaces packages,
and dataobjects?  XDoclet started as EJBDoclet, by Rickard Oberg, who
basically put what he saw as appropriate usage patterns in as defaults.  I
for one think they are good defaults, but am happy to hear suggestions for
ehat you would see as alternative defaults...  do you mean by this that
you dont use dataobjects?

cheers
dim



_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to