mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Guice module for stream transport connections.
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
package net.sf.briar.transport.stream;
|
||||||
|
|
||||||
|
import net.sf.briar.api.transport.StreamConnectionFactory;
|
||||||
|
|
||||||
|
import com.google.inject.AbstractModule;
|
||||||
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
|
public class TransportStreamModule extends AbstractModule {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void configure() {
|
||||||
|
bind(StreamConnectionFactory.class).to(
|
||||||
|
StreamConnectionFactoryImpl.class).in(Singleton.class);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user