Thanks for your reply.
Today's testing framworks like junit and mostly easymock need a collaborator. It is an interface. It is easy to create interfaces manually but the problem is I have to update everytime I generate java classes from a schema.
I would propse this feature (generating interface for each generated class) for the JAXB team.
All of my schemas have diffrent namespaces thus are separated in this context.
Let's take a look at on one schema from IETF:
When compiling this schema 5 java classes are generated.
ObjectFactory.java,
package-info.java,
Watcher.java,
Watcherinfo.java and
WatcherList.java
This is fine.
I would like to customize the ObjectFactory class name to be called WatcherFactory.
Lul
-----Original Message-----
From: Felipe Gaścho [mailto:fgaucho_at_gmail.com]
Sent: den 21 juli 2008 11:27
To: users_at_jaxb.dev.java.net
Subject: Re: interface
> Can JAXB generate interface classes?
JAXB cannot bind interfaces out of the box, but you can find some dirty tricks here:
https://jaxb.dev.java.net/guide/Mapping_interfaces.html
> Can I customize the name "ObjectFactory"?
the correct solution is to use namespaces to prevent naming conflicts.. (change the package and not the generated Types)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net