On Dec 24, 2008, at 4:19 PM, Jacek Laskowski wrote:
On Thu, Dec 25, 2008 at 1:14 AM, Jacek Laskowski (JIRA) <[email protected]
> wrote:
[ https://issues.apache.org/jira/browse/OPENEJB-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659174
#action_12659174 ]
Jacek Laskowski commented on OPENEJB-980:
-----------------------------------------
Created a junit test to spur some discussion on how it should be
implemented (and invite more contributors). I don't know how to
search for (sub)classes that inherit from the one found (with
finder.findAnnotatedClasses(ApplicationException.class)) so I'll
follow up on it in d...@openejb mailing list. Everybody's invited.
Hi,
Does anyone know the answer? I'd love fixing it (or providing a
configuration switch to allow for such an extension to EJB3), but
dunno how to find relevant classes. I've got BusinessException.class
(from finder.findAnnotatedClasses(ApplicationException.class)) and am
now wondering how to get at ValueRequiredException.class. Help
appreciated.
Just commented on that JIRA issue. The long and short is that it
would be a non-compliant feature. That's fine, we have plenty of
them, but it would have to be off by default.
As far as how to implement it, we'd need to beef up the ClassFinder so
that it can find subclasses of other classes. From there it would be
easier to implement though still might have holes as you aren't
guaranteed to find all subclasses of a class if those classes are
packaged in other archives.
-David