mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Added javadoc comments to plugin factory interfaces.
This commit is contained in:
@@ -2,9 +2,12 @@ package org.briarproject.api.plugins.duplex;
|
|||||||
|
|
||||||
import org.briarproject.api.TransportId;
|
import org.briarproject.api.TransportId;
|
||||||
|
|
||||||
|
/** Factory for creating a plugin for a duplex transport. */
|
||||||
public interface DuplexPluginFactory {
|
public interface DuplexPluginFactory {
|
||||||
|
|
||||||
|
/** Returns the plugin's transport identifier. */
|
||||||
TransportId getId();
|
TransportId getId();
|
||||||
|
|
||||||
|
/** Creates and returns a plugin, or null if no plugin can be created. */
|
||||||
DuplexPlugin createPlugin(DuplexPluginCallback callback);
|
DuplexPlugin createPlugin(DuplexPluginCallback callback);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,12 @@ package org.briarproject.api.plugins.simplex;
|
|||||||
|
|
||||||
import org.briarproject.api.TransportId;
|
import org.briarproject.api.TransportId;
|
||||||
|
|
||||||
|
/** Factory for creating a plugin for a simplex transport. */
|
||||||
public interface SimplexPluginFactory {
|
public interface SimplexPluginFactory {
|
||||||
|
|
||||||
|
/** Returns the plugin's transport identifier. */
|
||||||
TransportId getId();
|
TransportId getId();
|
||||||
|
|
||||||
|
/** Creates and returns a plugin, or null if no plugin can be created. */
|
||||||
SimplexPlugin createPlugin(SimplexPluginCallback callback);
|
SimplexPlugin createPlugin(SimplexPluginCallback callback);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user