Begin separation of JavaFX GUI and seed node CLI

This commit is contained in:
Chris Beams 2014-11-04 18:22:58 +01:00
parent ad1b3ccd1e
commit f6368754b9
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
7 changed files with 76 additions and 76 deletions

View file

@ -30,9 +30,12 @@ import io.bitsquare.user.User;
import io.bitsquare.util.ConfigLoader;
import com.google.inject.Injector;
import com.google.inject.name.Names;
import java.util.Properties;
import net.tomp2p.connection.Ports;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -64,6 +67,9 @@ public class BitsquareModule extends AbstractBitsquareModule {
install(guiModule());
bind(ActorSystem.class).toInstance(ActorSystem.create(Bitsquare.getAppName()));
int randomPort = new Ports().tcpPort();
bindConstant().annotatedWith(Names.named("clientPort")).to(randomPort);
}
protected MessageModule messageModule() {