From: David ‘Bombe’ Roden Date: Fri, 27 Jun 2014 16:32:17 +0000 (+0200) Subject: Make identity loader injectable. X-Git-Tag: 0.9-rc1^2~3^2~220 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=aa69d7eb1845cffa60b264dd9517ea0fcc54bcd4;p=Sone.git Make identity loader injectable. --- 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;