From aa69d7eb1845cffa60b264dd9517ea0fcc54bcd4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 27 Jun 2014 18:32:17 +0200 Subject: [PATCH] Make identity loader injectable. --- src/main/java/net/pterodactylus/sone/freenet/wot/IdentityLoader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityLoader.java b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityLoader.java index 5498eec..823653e 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityLoader.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityLoader.java @@ -30,6 +30,7 @@ import net.pterodactylus.sone.freenet.plugin.PluginException; import com.google.common.base.Function; import com.google.common.base.Optional; import com.google.common.collect.Multimap; +import com.google.inject.Inject; /** * Loads {@link OwnIdentity}s and the {@link Identity}s they trust. @@ -45,6 +46,7 @@ public class IdentityLoader { this(webOfTrustConnector, Optional.absent()); } + @Inject public IdentityLoader(WebOfTrustConnector webOfTrustConnector, Optional context) { this.webOfTrustConnector = webOfTrustConnector; this.context = context; -- 2.7.4