package com.wizzardo.jrt;

import com.wizzardo.http.framework.WebApplication;
import com.wizzardo.http.framework.di.DependencyFactory;
import com.wizzardo.http.framework.di.SingletonDependency;
import com.wizzardo.http.framework.message.MessageBundle;

/**
 * Created by wizzardo on 07.12.15.
 */
public class App {
    final WebApplication server;

    public App() {
        server = new WebApplication();

        DependencyFactory.getDependency(MessageBundle.class).load("messages");
        DependencyFactory.get().register(RTorrentService.class, new SingletonDependency<>(MockRTorrentService.class));

        server.getUrlMapping()
                .append("/", AppController.class, "riotIndex")
                .append("/addTorrent", AppController.class, "addTorrent")
                .append("/ws", "ws", DependencyFactory.getDependency(AppWebSocketHandler.class))
        ;

        server.start();
    }

    public static void main(String[] args) {
        new App();
    }
}

@@ -481,16 +481,18 @@
 ages%22);%0A
+//
         

disable mocked service