Skip to content

Instantly share code, notes, and snippets.

@anpieber
Created July 14, 2011 15:39
Show Gist options
  • Select an option

  • Save anpieber/1082695 to your computer and use it in GitHub Desktop.

Select an option

Save anpieber/1082695 to your computer and use it in GitHub Desktop.
public class Activator implements BundleActivator {
private DefaultWebApplicationFactory applicationFactory;
public void start(BundleContext context) throws Exception {
applicationFactory =
new DefaultWebApplicationFactory(context, WicketApplication.class, "plain.simple", "plain/simple");
applicationFactory.register();
}
public void stop(BundleContext context) throws Exception {
applicationFactory.dispose();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment