Could you please explain a little more why you want to do this.

What you're asking for may be possible, but these kinds of problems can nearly 
always be solved better using OSGi Services. For example, do you *really* need 
a class, or do you just need an instance of an object of a particular type?

Rgds
Neil



On Monday, 17 October 2011 at 07:44, xuhb wrote:

> Sorry, I expressed my requirement un-correctly;
> 
> Actually, the host application just know the name of class and want to choose 
> such class from embedded osgi environment ?
> Could I? 
> Must I create a bundle (which import such class) dynamically and retrive 
> class from the dynamic created bundle? Is there other facilitate method?
> 
> Thanks any suggestion
> ----- Original Message ----- 
> From: "xuhb" <[email protected] (mailto:[email protected])>
> To: <[email protected] (mailto:[email protected])>
> Sent: Monday, October 17, 2011 2:32 PM
> Subject: How to find a class of bundle from Host application?
> 
> 
> > Hi:
> >  I am using osgi environment (felix) embedded in a Host Application; 
> >  Now the host application want to use a class from a specified osgi bundle, 
> >  Could standard osgi support such usage? 
> >  or felix support such extension usage?
> > Thanks any suggestion

Reply via email to