mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-11 17:29:26 -04:00
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
/*
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
package io.bitsquare.offer;
|
|
|
|
import io.bitsquare.BitsquareModule;
|
|
|
|
import java.util.Properties;
|
|
|
|
public abstract class OfferModule extends BitsquareModule {
|
|
|
|
protected OfferModule(Properties properties) {
|
|
super(properties);
|
|
}
|
|
|
|
@Override
|
|
protected void configure() {
|
|
bind(OfferRepository.class).to(offerRepository()).asEagerSingleton();
|
|
}
|
|
|
|
protected abstract Class<? extends OfferRepository> offerRepository();
|
|
}
|