|
Hi,
I'm a Xdoclet newbie, actually I'm
now considering wheather to use Xdoclet in the project I currently work on. I've
developed the J2EE enterprise application (comprised of one EJB module and
one WEB module), the target application server is now Sun ONE Application
Server, but the idea is to move it to JBoss. Re-writing a couple of deployment
descriptors, and an ant script for packaging is not the problem, but I thought
that the whole thing could be integrated into Eclipse (I used Sun ONE Studio
before we decided to move to JBoss) much better, making the
packaging&deployment seamless and comfortable task.
But there is something that bothers
me, so I browsed the documentation, tutorials and the archive of this list,
but without success (unfortunately).
The example I'm about to present is
just for illustration purpose, it is from the top of my head (and syntax errors
are quite possible).
Suppose we want to develop a system
for supporting set operations (like union, intersection and so on). The idea is
to have some sets stored into relational database (using Container Managed
Persistence EJB) and, say, a client application that will perform set operations
between those stored (persistent) sets and user-created (non-persistent)
sets.
So we'll have the interface
Set:
public interface Set {
public boolean
contains(Object element);
}
Now suppose we have a class
NonpersistentSet, implementing interface set;
public class NonpersistentSet
implements Set {
public boolean
contains(Object element) {
//implementation of method Set
}
}
Next, suppose we want to introduce a
CMP Entity Bean called PersistentSet. The bean class is not a
problem:
public class PersistentSet implements
Set, EntityBean {
//implementation
of bean methods
}
What bothers me is: since the
PersistentSet's local interface is generated automatically, is it possible to
accomplish that it also implements interface Set (beside the interface
EJBLocalObject), something like
public interface LocalPersistentSet
extends Set, EJBLocalObject {
//empty, since all the business
methods are inherited from Set
}
and not like:
public interface LocalPersistentSet
extends EJBLocalObject {
public boolean
contains(Object element);
}
This is important for me because in
my project I have the class hierarchy, and not the isolated beans.
Thank you in advance,
Damjan S.
Vujnovic |
- [Xdoclet-user] Re: Generated EJB local interface implem... Damjan S. Vujnovic
- [Xdoclet-user] Re: Generated EJB local interface i... Matthew Hawthorne
