X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fplugin%2FPluginConnector.java;h=322b0d32742f18fc99c23b133be96040bb077fb7;hb=6260b73eadb2b4eda1df07ce7f81572c4a696fc9;hp=b8423500aebe87ad676dad6291f324421a609919;hpb=64d4f133925b0b8aac6f4dd225500d326f20ac41;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/freenet/plugin/PluginConnector.java b/src/main/java/net/pterodactylus/sone/freenet/plugin/PluginConnector.java index b842350..322b0d3 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/plugin/PluginConnector.java +++ b/src/main/java/net/pterodactylus/sone/freenet/plugin/PluginConnector.java @@ -1,5 +1,5 @@ /* - * Sone - PluginConnector.java - Copyright © 2010–2012 David Roden + * Sone - PluginConnector.java - Copyright © 2010–2013 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 @@ -19,9 +19,6 @@ package net.pterodactylus.sone.freenet.plugin; import net.pterodactylus.sone.freenet.plugin.event.ReceivedReplyEvent; -import com.google.common.eventbus.EventBus; -import com.google.inject.Inject; - import freenet.pluginmanager.FredPluginTalker; import freenet.pluginmanager.PluginNotFoundException; import freenet.pluginmanager.PluginRespirator; @@ -29,6 +26,9 @@ import freenet.pluginmanager.PluginTalker; import freenet.support.SimpleFieldSet; import freenet.support.api.Bucket; +import com.google.common.eventbus.EventBus; +import com.google.inject.Inject; + /** * Interface for talking to other plugins. Other plugins are identified by their * name and a unique connection identifier. @@ -70,22 +70,6 @@ public class PluginConnector implements FredPluginTalker { * The identifier of the connection * @param fields * The fields of the message - * @throws PluginException - * if the plugin can not be found - */ - public void sendRequest(String pluginName, String identifier, SimpleFieldSet fields) throws PluginException { - sendRequest(pluginName, identifier, fields, null); - } - - /** - * Sends a request to the given plugin. - * - * @param pluginName - * The name of the plugin - * @param identifier - * The identifier of the connection - * @param fields - * The fields of the message * @param data * The payload of the message (may be null) * @throws PluginException @@ -122,9 +106,6 @@ public class PluginConnector implements FredPluginTalker { // INTERFACE FredPluginTalker // - /** - * {@inheritDoc} - */ @Override public void onReply(String pluginName, String identifier, SimpleFieldSet params, Bucket data) { eventBus.post(new ReceivedReplyEvent(this, pluginName, identifier, params, data));