Heinz2
(Heinz Müller)
January 17, 2012, 4:53pm
1
Hello everyone!
I wondered about how to develop extensions for my application. Is there an example
about how to use JPF together with vaadin or is there an easier approach
? The best solution would be to enable and disable the plugins on the fly.
Thanks in advance,
Heinz
Heinz2
(Heinz Müller)
January 18, 2012, 6:57pm
2
Hello again,
maybe I should be more concrete: Let’s think about an Basic Application:
package com.example.demo;
import com.vaadin.Application;
import com.vaadin.ui.*;
public class DemoApplication extends Application {
private static final long serialVersionUID = 1L;
@Override
public void init() {
Window mainWindow = new Window("Demo Application");
Label label = new Label("Hello Vaadin user");
mainWindow.addComponent(label);
setMainWindow(mainWindow);
}
}
Now I want to load all *.jar-Files in a folder (e.g. WebContent/WEB-INF/plugins) and call a method of a class, that implements a special interface.
How could I do this?
Thanks in advance!
Mathias1
(Mathias Clerc)
January 19, 2012, 12:50am
3
See
here
for some pointers and code.