Create a file named remote-custom.j, put it in where ejbdoclet's
mergeDir param points to and have fun. In runtime xdoclet will pick this
file and merge it in.

In that file you can either hard-code the values you're talking about or
write your own template which loops over all public static constants
marked with @ejb:interface-field (you invent this tag) and adds them to
remote interface. Use <XDtField:forAllField/etc/> template tags to
writeyou're your custom template.

Ara.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> [EMAIL PROTECTED]] On Behalf Of Daniel Bratell
> Sent: Monday, March 04, 2002 7:39 PM
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] How to get constants in the generated
interface
> 
> I was writing an entity bean the other day, actually more like half an
> hour
> ago, and it has a type field which can have some very specific values.
> Normally I would enter some constants in the interface (public final
> static
> int TYPE_BAD = 4) but now that part is generated.
> 
> I've written the constants the constants in the implementation java
file
> but how do I get them into the interfaces?
> 
> @ejb:interface-method didn't work.
> 
> /Daniel
> 
> 
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to