dev@glassfish.java.net

Re: osgi question

From: Richard S. Hall <heavy_at_ungoverned.org>
Date: Tue, 18 May 2010 18:18:59 -0400

On 5/18/10 14:14, Justin Lee wrote:
> But while we're on the subject, I need to verify that the given class
> name (passed as a string to the asadmin command) correctly implements
> the proper interfaces. As i understand it, Class.forName() is
> considered harmful in an OSGi environment and as I recall we should
> use something Thread.currentThread().getContextClassLoader() is that
> correct?

Context class loader is not really used in OSGi.

How are you expecting to get this class? Does your bundle import the
package? Is it a dynamic import? I think I need more details on your
scenario.

-> richard

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>