projects
/
WoTNS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add javadoc, suppress warnings.
[WoTNS.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
wotns
/
main
/
WoTNSPlugin.java
diff --git
a/src/main/java/net/pterodactylus/wotns/main/WoTNSPlugin.java
b/src/main/java/net/pterodactylus/wotns/main/WoTNSPlugin.java
index
c495e71
..
83639c2
100644
(file)
--- a/
src/main/java/net/pterodactylus/wotns/main/WoTNSPlugin.java
+++ b/
src/main/java/net/pterodactylus/wotns/main/WoTNSPlugin.java
@@
-35,7
+35,7
@@
import freenet.pluginmanager.FredPluginVersioned;
import freenet.pluginmanager.PluginRespirator;
/**
import freenet.pluginmanager.PluginRespirator;
/**
- *
TODO
+ *
Main plugin class for Web of Trust Name Service.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
@@
-46,36
+46,63
@@
public class WoTNSPlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL1
Logging.setupConsoleLogging();
}
Logging.setupConsoleLogging();
}
+ /** The current version of the plugin. */
private static final Version VERSION = new Version(0, 0, 7);
private static final Version VERSION = new Version(0, 0, 7);
+ /** The plugin respirator. */
private PluginRespirator pluginRespirator;
private PluginRespirator pluginRespirator;
+ /** The l10n handler. */
private PluginL10n l10n;
private PluginL10n l10n;
+ /** The web interface. */
private WebInterface webInterface;
private WebInterface webInterface;
+ /** The resolver. */
private Resolver resolver;
private Resolver resolver;
+ /** The web of trust connector. */
private WebOfTrustConnector webOfTrustConnector;
private WebOfTrustConnector webOfTrustConnector;
+ /** The identity manager. */
private IdentityManager identityManager;
//
// ACCESSORS
//
private IdentityManager identityManager;
//
// ACCESSORS
//
+ /**
+ * Returns the high-level simple client for the node.
+ *
+ * @return The high-level simple client
+ */
public HighLevelSimpleClient getHighLevelSimpleClient() {
return pluginRespirator.getHLSimpleClient();
}
public HighLevelSimpleClient getHighLevelSimpleClient() {
return pluginRespirator.getHLSimpleClient();
}
+ /**
+ * Returns the toadlet container of the node.
+ *
+ * @return The toadlet container of the node
+ */
public ToadletContainer getToadletContainer() {
return pluginRespirator.getToadletContainer();
}
public ToadletContainer getToadletContainer() {
return pluginRespirator.getToadletContainer();
}
+ /**
+ * Returns the identity manager.
+ *
+ * @return The identity manager
+ */
public IdentityManager getIdentityManager() {
return identityManager;
}
public IdentityManager getIdentityManager() {
return identityManager;
}
+ /**
+ * Returns the resolver.
+ *
+ * @return The resolver
+ */
public Resolver getResolver() {
return resolver;
}
public Resolver getResolver() {
return resolver;
}
@@
-88,7
+115,7
@@
public class WoTNSPlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL1
* {@inheritDoc}
*/
@Override
* {@inheritDoc}
*/
@Override
- public void runPlugin(PluginRespirator pluginRespirator) {
+ public void runPlugin(
@SuppressWarnings("hiding")
PluginRespirator pluginRespirator) {
this.pluginRespirator = pluginRespirator;
PluginConnector pluginConnector = new PluginConnector(pluginRespirator);
this.pluginRespirator = pluginRespirator;
PluginConnector pluginConnector = new PluginConnector(pluginRespirator);