Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Get Bundle or BundleContext without Activator?

Not unless you use something like Declarative Services which can inject a 
ComponentContext from which the BundleContent and then Bundle can be 
obtained.

The BundleActivator is the means for the framework to inject the 
BundleContext into a bundle.
-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
hargrave@xxxxxxxxxx

office: +1 386 848 1781
mobile: +1 386 848 3788




"Ali Sakebi" <ali.sakebi@xxxxxxxxx> 
Sent by: equinox-dev-bounces@xxxxxxxxxxx
2007-05-22 14:36
Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>


To
equinox-dev@xxxxxxxxxxx
cc

Subject
[equinox-dev] Get Bundle or BundleContext without Activator?






Hi

Is there any way to get Bundle or BundleContext without Activator
inside a bundle?
For example when an exported class is called, but there is no
Activator for the bundle of exported class?

Regards,
Ali
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev




Back to the top