);
final SubscribersCompiler subscribersCompiler = injector.getInstance(SubscribersCompiler.class);
subscribersCompiler.startAll();
final JettyServer jetty = injector.getInstance(JettyServer.class);
jetty.start(injector);
Runtime.getRuntime().addShutdownHook(new Thread()
{
@Override
public void run()
{
subscribersCompiler.stopAll();
jetty.stop();
}
});
}