On 1/9/07, Marshall Schor <[EMAIL PROTECTED]> wrote:
An interesting idea.  It would seem quite possible to set up JCas so
that the Java cover objects would be specific for each component, reused
within that component, but dropped when the component exited.  This
would allow different definitions of the class in each component, at
some expense of creating additional Java cover objects.


It seems like it may be difficult to get something like this working
in OSGi.  Already we have to fight OSGi convention to get JCas to work
(by registering buddy classloaders - which doesn't work with multiple
definitions of the same class).  It seems like to support multiple
definitions of the same class will require the UIMA framework to do
some serious juggling of classloaders and will take us even futher
from doing things the "right" OSGi way.

BTW, see also this discussion about DocumentAnnotation and type
merging:  
http://www.mail-archive.com/[email protected]/msg00762.html.

-Adam

Reply via email to