X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FWebOfTrustConnector.java;h=8395e8bba1eac171cdfff8c90d94d57ab576c283;hb=f31570baa3b96a18d38f1351c55886a653fcdba8;hp=3b30a4eeddc5ad96a5c3b0e31b2857df85c824ae;hpb=0e8f7804ce344bdd69f5ecc7febe25a60a53561d;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java index 3b30a4e..8395e8b 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java @@ -1,5 +1,5 @@ /* - * Sone - WebOfTrustConnector.java - Copyright © 2010–2013 David Roden + * Sone - WebOfTrustConnector.java - Copyright © 2010–2015 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -50,7 +50,7 @@ import freenet.support.api.Bucket; public class WebOfTrustConnector { /** The logger. */ - private static final Logger logger = getLogger("Sone.WoT.Connector"); + private static final Logger logger = getLogger(WebOfTrustConnector.class.getName()); /** The name of the WoT plugin. */ private static final String WOT_PLUGIN_NAME = "plugins.WebOfTrust.WebOfTrust"; @@ -80,6 +80,14 @@ public class WebOfTrustConnector { // ACTIONS // + public void start() { + try { + pluginConnector.start(); + } catch (PluginException e) { + e.printStackTrace(); + } + } + /** * Stops the web of trust connector. */ @@ -126,7 +134,7 @@ public class WebOfTrustConnector { * if an error occured talking to the Web of Trust plugin */ public Set loadTrustedIdentities(OwnIdentity ownIdentity) throws PluginException { - return loadTrustedIdentities(ownIdentity, null); + return loadTrustedIdentities(ownIdentity, Optional.absent()); } /**