RE: [Xdoclet-user] Tag inheritance from interfacesahhhh. ok.
1.1.2 does this yes, in 1.2 it was changed to use the generic @ejb.interface
local-extends="MyBusinessInterface" because at the end of the day, thats all
it is.
Regarding the flaw in the templates, perhaps this was actually changed
before 1.1.2, but the documentation was not... I"m not sure.
Ok, so you have:
- bean class, not @ejb.interface-method tags
- business interface, complete with javadoc
- generated component interface, with no methods
I'm not sure where the problem is.... where do you want the javadoc copied
to? As I understand it when you run javadoc, the generated component
interface will be empty, but extend the business interface, which will
contain the appropriate javadoc. Could you tell me:
- are you using any @ejb.interface-method tags on methods that are also
in the business interface?
- what gets generated in the component interface
as a side note - the business interface pattern is really a workaround for
problems caused by the lack of tools in ejb. If you use XDoclet fully, then
the generated interface will always match the bean. As far as refactoring
tools are concerned, many of these (or at least IDEA) now support
refactoring ejb methods.
hth
dim
----- Original Message -----
From: Eric McIntyre
To: 'Dmitri Colebatch' ; XDoclet User mailing List (E-mail)
Sent: Friday, October 25, 2002 10:27 AM
Subject: RE: [Xdoclet-user] Tag inheritance from interfaces
No, I'm trying to do something different:
public interface BizIntf {
/**
* @ejb:persistent-field
*/
public void setVal(int val);
}
/**
* @ejb:bean ...
* local-business-interface="BizIntf"
*/
public abstract class BizIntfBean implements BizIntf {
...
}
And then XDoclet would generate:
public interface BizIntf_Local extends javax.ejb.EJBLocalObject, BizIntf {
}
Just the standard Business Interface pattern. According to the
documentation, XDoclet supports this through the @ejb:bean
remote-business-interface and local-business-interface tag parameters. In
this case, @ejb:interface-method tags are not required. But I do still need
to declare persistent fields, relationships, etc. somewhere. (As a side
note, the templates bundled with the distribution are flawed in that they do
*not* make the Remote/Local interfaces extend the business interfaces,
though they check this before generating the body of the interface. I
created a copy of the templates for my own project that fixes this).
Hope this makes it more clear
Eric
-----Original Message-----
From: Dmitri Colebatch [mailto:dim@;bigpond.net.au]
Sent: Thursday, October 24, 2002 5:06 PM
To: Eric McIntyre; XDoclet User mailing List (E-mail)
Subject: Re: [Xdoclet-user] Tag inheritance from interfaces
not quite sure I'm 100% understanding, so to confirm, if you declare:
/**
* Do such and such.
* @ejb.interface-method
*/
public void doSuchAndSuch()
{
;
}
in your bean, then you should have
/**
* Do such and such.
*/
public void doSuchAndSuch();
generated in the interface.
Is this not happening? Or have I misinterpreted what it is you're after?
cheers
dim
----- Original Message -----
From: Eric McIntyre
To: XDoclet User mailing List (E-mail)
Sent: Friday, October 25, 2002 9:58 AM
Subject: [Xdoclet-user] Tag inheritance from interfaces
Sorry if these questions have been answered before, but I couldn't find
them. I found a similar post on the SourceForge help forum, but no answer.
We would like to be able to use business interfaces for our entity beans,
but the current release of XDoclet does not seem to inherit the javadoc
comments from them. The workaround so far is to re-declare the business
methods in the bean solely to provide XDoclet with information, which is
less than optimal.
Did I miss something basic to make this work, or is this a known limitation?
Is this kind of inheritance planned for release 1.2?
Eric McIntyre
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user