Import external libray at runtime

I would like to use some external libraries at runtime, knowing filename,class name and class members.

This classes should have a GUI and elaboration method.
I was wondering about a
public static Component initUI()
in a JAR file maybe but I cannot import Vaadin Components.

How can I implement this behaviour? Importing another web application maybe?

Thank you very much


Some are doing something like this using OSGi - see e.g.

However, all the client side code needs to be compiled into a single widgetset in advance, so you have to know in advance which (client-side) add-ons you will be supporting.

Hi marco,

as henri mentioned, we are using OSGi in our redVoodo project to do exactly what you are looking for.

There is a detailed description how to setup an OSGi environment with vaadin addons.

If you have any questions, feel free to ask.

Cheers, Flo