Set Freenet interface in core.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index 84e813e..f56c1ce 100644 (file)
@@ -46,6 +46,9 @@ public class Core extends AbstractService {
        /** The configuration. */
        private Configuration configuration;
 
+       /** Interface to freenet. */
+       private FreenetInterface freenetInterface;
+
        /** The local Sones. */
        private final Set<Sone> localSones = new HashSet<Sone>();
 
@@ -72,6 +75,18 @@ public class Core extends AbstractService {
                return this;
        }
 
+       /**
+        * Sets the Freenet interface to use.
+        *
+        * @param freenetInterface
+        *            The Freenet interface to use
+        * @return This core (for method chaining)
+        */
+       public Core freenetInterface(FreenetInterface freenetInterface) {
+               this.freenetInterface = freenetInterface;
+               return this;
+       }
+
        //
        // ACTIONS
        //