opennlp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject Re: Better OSGi support
Date Tue, 24 Apr 2012 11:20:17 GMT
On 04/20/2012 04:52 PM, william.colen@gmail.com wrote:
> Looks nice!
> Maybe there should be a way to avoid using exceptions to control whether we
> load a class from classpath or from OSGi. For the best of my knowledge
> throwing exceptions are time consuming due to the creation of the stack
> trace.
> I searched for an alternative when we started talking about it a few days
> ago, but I could not find anything.
>

I now avoided to use Class.forName to check if OSGi is there.
The activator now sets a static variable to indicate if its running
inside OSGi or not. I also did some testing with OSGi and prepared
some documentation to explain how it can be used (still needs to be 
committed).

Jörn


Mime
View raw message