On 4/23/10 4:38, Stijn de Witt wrote:
If you need access to Swing / AWT etc in your bundles, you should
Instruct Felix to expose these classes to your bundles by placing
Their package names in a list passed to Felix using

Constants.FRAMEWORK_SYSTEMPACKAGES_EXTRA

All JRE packages are exported by the system bundle by default, so you should just have to import them in your bundles with no other necessary actions.

-> richard

Good luck!

-Stijn



-----Original Message-----
From: Elliot Huntington [mailto:elliot.hunting...@gmail.com]
Sent: donderdag 22 april 2010 17:41
To: users@felix.apache.org
Subject: OSGi newbie looking for pointers

Hi:

I just started researching OSGi this past week so I'm very new to it
and have never developed an application using it. But I am very
interested in learning this technology. In my research I've learned
that the different bundles can communicate with each other by
publishing/consuming services to/from the service registry. I am
confused though how this process works.

For example I want to create a bare bones OSGi GUI application. I want
this application to only manage the lifecycle of the gui (open the
main frame and handle the shutdown/closing of the program). Then, I
would like to create other projects (bundles) that provide all the
features for this application via plugins. I'm thinking that the best
way to do this would be to create the main GUI application with an
instance of embedded Felix.

Given this scenario, how would the different pluggins/bundles know how
to modify the main GUI and add functionality to it? Does the GUI
itself need to provide hooks into it and if so how does it do that?

If any of you have any example code or tutorials you could point me to
I would appreciate it.

Thanks,
Elliot

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to