package nl.next35.web;

import nl.next35.domain.User;
import nl.next35.logic.RedditResolver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author Lesley
 */
@SpringBootApplication
public class Main {

    public static void main(String[] args) {
        SpringApplication.run(Main.class, args);

        RedditResolver rdr = new RedditResolver();
        System.out.println(rdr.getPosts(new User("Peewbacca")));
    }

}

@@ -38,17 +38,26 @@
 t35.
-domain.Us
+logic.RedditResolv
 er;%0A
@@ -75,38 +75,32 @@
 ext35.logic.
-Reddit
 Resolver
 ;%0Aimport org
@@ -79,32 +79,37 @@
 5.logic.Resolver
+Chain
 ;%0Aimport org.spr
@@ -285,16 +285,85 @@
 Main %7B%0A%0A
+    private static final ResolverChain chain = new ResolverChain();%0A%0A
     publ
@@ -399,16 +399,58 @@
 args) %7B%0A
+        chain.add(new RedditResolver());%0A%0A
         
@@ -494,123 +494,88 @@
 s);%0A
-%0A
     
+%7D%0A%0A
     
-RedditResolver rdr = new RedditResolver();%0A        System.out.println(rdr.getPosts(new User(%22Peewbacca%22)))
+public static ResolverChain getResolverChain() %7B%0A        return chain
 ;%0A  

Add a resolver to Main (cheaphax).