import freenet.pluginmanager.FredPluginTalker;
import freenet.pluginmanager.PluginNotFoundException;
-import freenet.pluginmanager.PluginRespirator;
-import freenet.pluginmanager.PluginTalker;
import freenet.support.SimpleFieldSet;
import freenet.support.api.Bucket;
private final EventBus eventBus;
/** The plugin respirator. */
- private final PluginRespirator pluginRespirator;
+ private final PluginRespiratorFacade pluginRespiratorFacade;
/**
* Creates a new plugin connector.
*
* @param eventBus
* The event bus
- * @param pluginRespirator
+ * @param pluginRespiratorFacade
* The plugin respirator
*/
@Inject
- public PluginConnector(EventBus eventBus, PluginRespirator pluginRespirator) {
+ public PluginConnector(EventBus eventBus, PluginRespiratorFacade pluginRespiratorFacade) {
this.eventBus = eventBus;
- this.pluginRespirator = pluginRespirator;
+ this.pluginRespiratorFacade = pluginRespiratorFacade;
}
//
* @throws PluginException
* if the plugin can not be found
*/
- private PluginTalker getPluginTalker(String pluginName, String identifier) throws PluginException {
+ private PluginTalkerFacade getPluginTalker(String pluginName, String identifier) throws PluginException {
try {
- return pluginRespirator.getPluginTalker(this, pluginName, identifier);
+ return pluginRespiratorFacade.getPluginTalker(this, pluginName, identifier);
} catch (PluginNotFoundException pnfe1) {
throw new PluginException(pnfe1);
}