Added javadoc comments to plugin factory interfaces.

This commit is contained in:
akwizgran
2014-03-06 13:20:28 +00:00
parent 0198e40719
commit 250afa7642
2 changed files with 6 additions and 0 deletions

View File

@@ -2,9 +2,12 @@ package org.briarproject.api.plugins.duplex;
import org.briarproject.api.TransportId;
/** Factory for creating a plugin for a duplex transport. */
public interface DuplexPluginFactory {
/** Returns the plugin's transport identifier. */
TransportId getId();
/** Creates and returns a plugin, or null if no plugin can be created. */
DuplexPlugin createPlugin(DuplexPluginCallback callback);
}

View File

@@ -2,9 +2,12 @@ package org.briarproject.api.plugins.simplex;
import org.briarproject.api.TransportId;
/** Factory for creating a plugin for a simplex transport. */
public interface SimplexPluginFactory {
/** Returns the plugin's transport identifier. */
TransportId getId();
/** Creates and returns a plugin, or null if no plugin can be created. */
SimplexPlugin createPlugin(SimplexPluginCallback callback);
}