mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
20 lines
547 B
Java
20 lines
547 B
Java
package net.sf.briar.serial;
|
|
|
|
import net.sf.briar.api.serial.ReaderFactory;
|
|
import net.sf.briar.api.serial.SerialComponent;
|
|
import net.sf.briar.api.serial.WriterFactory;
|
|
|
|
import com.google.inject.AbstractModule;
|
|
import com.google.inject.Singleton;
|
|
|
|
public class SerialModule extends AbstractModule {
|
|
|
|
@Override
|
|
protected void configure() {
|
|
bind(ReaderFactory.class).to(ReaderFactoryImpl.class);
|
|
bind(SerialComponent.class).to(SerialComponentImpl.class).in(
|
|
Singleton.class);
|
|
bind(WriterFactory.class).to(WriterFactoryImpl.class);
|
|
}
|
|
}
|