* TODO: improve callbacks that Platform.runLater is not necessary. We call usually that methods form teh UI thread.
*/
-public class TomP2PMessageFacade implements MessageFacade {
- private static final Logger log = LoggerFactory.getLogger(MessageFacade.class);
+class TomP2PMessageFacade implements MessageFacade {
+ private static final Logger log = LoggerFactory.getLogger(TomP2PMessageFacade.class);
private static final String ARBITRATORS_ROOT = "ArbitratorsRoot";
private final P2PNode p2pNode;
diff --git a/src/main/java/io/bitsquare/network/Peer.java b/src/main/java/io/bitsquare/network/Peer.java
index a7428b0ea1..5012ce0d3e 100644
--- a/src/main/java/io/bitsquare/network/Peer.java
+++ b/src/main/java/io/bitsquare/network/Peer.java
@@ -17,5 +17,10 @@
package io.bitsquare.network;
+/**
+ * A peer on the Bitsquare network.
+ *
+ * @author Chris Beams
+ */
public interface Peer {
}
diff --git a/src/main/java/io/bitsquare/network/tomp2p/TomP2PPeer.java b/src/main/java/io/bitsquare/network/tomp2p/TomP2PPeer.java
index 1b78db1ac1..daaecd5ba0 100644
--- a/src/main/java/io/bitsquare/network/tomp2p/TomP2PPeer.java
+++ b/src/main/java/io/bitsquare/network/tomp2p/TomP2PPeer.java
@@ -23,6 +23,11 @@ import com.google.common.base.Objects;
import net.tomp2p.peers.PeerAddress;
+/**
+ * A {@link Peer} implementation that encapsulates a TomP2P {@link PeerAddress}.
+ *
+ * @author Chris Beams
+ */
public class TomP2PPeer implements Peer {
private final PeerAddress peerAddress;
diff --git a/src/main/java/io/bitsquare/trade/TradeModule.java b/src/main/java/io/bitsquare/trade/TradeModule.java
new file mode 100644
index 0000000000..6290a39fba
--- /dev/null
+++ b/src/main/java/io/bitsquare/trade/TradeModule.java
@@ -0,0 +1,34 @@
+/*
+ * This file is part of Bitsquare.
+ *
+ * Bitsquare is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or (at
+ * your option) any later version.
+ *
+ * Bitsquare is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Bitsquare. If not, see