mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-26 15:50:42 -04:00
Rename io.bitsquare.{Abstract=>}BitsquareModule
This commit is contained in:
parent
1546285b8b
commit
ca070941dc
9 changed files with 21 additions and 21 deletions
|
@ -25,24 +25,24 @@ import com.google.inject.Injector;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public abstract class AbstractBitsquareModule extends AbstractModule {
|
public abstract class BitsquareModule extends AbstractModule {
|
||||||
|
|
||||||
protected final Properties properties;
|
protected final Properties properties;
|
||||||
|
|
||||||
private final Set<AbstractBitsquareModule> modules = Sets.newHashSet();
|
private final Set<BitsquareModule> modules = Sets.newHashSet();
|
||||||
|
|
||||||
protected AbstractBitsquareModule(Properties properties) {
|
protected BitsquareModule(Properties properties) {
|
||||||
this.properties = properties;
|
this.properties = properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void install(AbstractBitsquareModule module) {
|
protected void install(BitsquareModule module) {
|
||||||
super.install(module);
|
super.install(module);
|
||||||
modules.add(module);
|
modules.add(module);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Close any instances this module is responsible for and recursively close any
|
* Close any instances this module is responsible for and recursively close any
|
||||||
* sub-modules installed via {@link #install(AbstractBitsquareModule)}. This method
|
* sub-modules installed via {@link #install(BitsquareModule)}. This method
|
||||||
* must be called manually, e.g. at the end of a main() method or in the stop() method
|
* must be called manually, e.g. at the end of a main() method or in the stop() method
|
||||||
* of a JavaFX Application; alternatively it may be registered as a JVM shutdown hook.
|
* of a JavaFX Application; alternatively it may be registered as a JVM shutdown hook.
|
||||||
*
|
*
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
package io.bitsquare.app;
|
package io.bitsquare.app;
|
||||||
|
|
||||||
import io.bitsquare.AbstractBitsquareModule;
|
import io.bitsquare.BitsquareModule;
|
||||||
import io.bitsquare.btc.BitcoinModule;
|
import io.bitsquare.btc.BitcoinModule;
|
||||||
import io.bitsquare.crypto.CryptoModule;
|
import io.bitsquare.crypto.CryptoModule;
|
||||||
import io.bitsquare.msg.MessageModule;
|
import io.bitsquare.msg.MessageModule;
|
||||||
|
@ -45,7 +45,7 @@ import scala.concurrent.duration.Duration;
|
||||||
/**
|
/**
|
||||||
* Configures all non-UI modules necessary to run a Bitsquare application.
|
* Configures all non-UI modules necessary to run a Bitsquare application.
|
||||||
*/
|
*/
|
||||||
public class AppModule extends AbstractBitsquareModule {
|
public class AppModule extends BitsquareModule {
|
||||||
private static final Logger log = LoggerFactory.getLogger(AppModule.class);
|
private static final Logger log = LoggerFactory.getLogger(AppModule.class);
|
||||||
|
|
||||||
private final String appName;
|
private final String appName;
|
||||||
|
|
|
@ -17,14 +17,14 @@
|
||||||
|
|
||||||
package io.bitsquare.app.gui;
|
package io.bitsquare.app.gui;
|
||||||
|
|
||||||
import io.bitsquare.AbstractBitsquareModule;
|
import io.bitsquare.BitsquareModule;
|
||||||
import io.bitsquare.app.AppModule;
|
import io.bitsquare.app.AppModule;
|
||||||
import io.bitsquare.gui.GuiModule;
|
import io.bitsquare.gui.GuiModule;
|
||||||
import io.bitsquare.util.ConfigLoader;
|
import io.bitsquare.util.ConfigLoader;
|
||||||
|
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
class MainModule extends AbstractBitsquareModule {
|
class MainModule extends BitsquareModule {
|
||||||
|
|
||||||
private final String appName;
|
private final String appName;
|
||||||
private final Stage primaryStage;
|
private final Stage primaryStage;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
package io.bitsquare.btc;
|
package io.bitsquare.btc;
|
||||||
|
|
||||||
import io.bitsquare.AbstractBitsquareModule;
|
import io.bitsquare.BitsquareModule;
|
||||||
|
|
||||||
import org.bitcoinj.core.NetworkParameters;
|
import org.bitcoinj.core.NetworkParameters;
|
||||||
import org.bitcoinj.params.MainNetParams;
|
import org.bitcoinj.params.MainNetParams;
|
||||||
|
@ -28,7 +28,7 @@ import com.google.inject.Injector;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
public class BitcoinModule extends AbstractBitsquareModule {
|
public class BitcoinModule extends BitsquareModule {
|
||||||
|
|
||||||
private static final BitcoinNetwork DEFAULT_NETWORK = BitcoinNetwork.REGTEST;
|
private static final BitcoinNetwork DEFAULT_NETWORK = BitcoinNetwork.REGTEST;
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
|
|
||||||
package io.bitsquare.crypto;
|
package io.bitsquare.crypto;
|
||||||
|
|
||||||
import io.bitsquare.AbstractBitsquareModule;
|
import io.bitsquare.BitsquareModule;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
public class CryptoModule extends AbstractBitsquareModule {
|
public class CryptoModule extends BitsquareModule {
|
||||||
|
|
||||||
public CryptoModule(Properties properties) {
|
public CryptoModule(Properties properties) {
|
||||||
super(properties);
|
super(properties);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
package io.bitsquare.gui;
|
package io.bitsquare.gui;
|
||||||
|
|
||||||
import io.bitsquare.AbstractBitsquareModule;
|
import io.bitsquare.BitsquareModule;
|
||||||
import io.bitsquare.gui.components.Popups;
|
import io.bitsquare.gui.components.Popups;
|
||||||
import io.bitsquare.gui.main.help.Help;
|
import io.bitsquare.gui.main.help.Help;
|
||||||
import io.bitsquare.gui.main.trade.offerbook.OfferBook;
|
import io.bitsquare.gui.main.trade.offerbook.OfferBook;
|
||||||
|
@ -32,7 +32,7 @@ import java.util.Properties;
|
||||||
|
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
public class GuiModule extends AbstractBitsquareModule {
|
public class GuiModule extends BitsquareModule {
|
||||||
|
|
||||||
private final Stage primaryStage;
|
private final Stage primaryStage;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
package io.bitsquare.msg;
|
package io.bitsquare.msg;
|
||||||
|
|
||||||
import io.bitsquare.AbstractBitsquareModule;
|
import io.bitsquare.BitsquareModule;
|
||||||
import io.bitsquare.network.BootstrapNodes;
|
import io.bitsquare.network.BootstrapNodes;
|
||||||
import io.bitsquare.network.Node;
|
import io.bitsquare.network.Node;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ import com.google.inject.name.Names;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
public abstract class MessageModule extends AbstractBitsquareModule {
|
public abstract class MessageModule extends BitsquareModule {
|
||||||
|
|
||||||
protected MessageModule(Properties properties) {
|
protected MessageModule(Properties properties) {
|
||||||
super(properties);
|
super(properties);
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
|
|
||||||
package io.bitsquare.offer;
|
package io.bitsquare.offer;
|
||||||
|
|
||||||
import io.bitsquare.AbstractBitsquareModule;
|
import io.bitsquare.BitsquareModule;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
public abstract class OfferModule extends AbstractBitsquareModule {
|
public abstract class OfferModule extends BitsquareModule {
|
||||||
|
|
||||||
protected OfferModule(Properties properties) {
|
protected OfferModule(Properties properties) {
|
||||||
super(properties);
|
super(properties);
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
|
|
||||||
package io.bitsquare.trade;
|
package io.bitsquare.trade;
|
||||||
|
|
||||||
import io.bitsquare.AbstractBitsquareModule;
|
import io.bitsquare.BitsquareModule;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
public class TradeModule extends AbstractBitsquareModule {
|
public class TradeModule extends BitsquareModule {
|
||||||
|
|
||||||
public TradeModule(Properties properties) {
|
public TradeModule(Properties properties) {
|
||||||
super(properties);
|
super(properties);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue