All Downloads are FREE. Search and download functionalities are using the official Maven repository.

network.oxalis.inbound.DefaultInboundService Maven / Gradle / Ivy

There is a newer version: 7.0.0-RC1
Show newest version
package network.oxalis.inbound;

import com.google.inject.Inject;
import com.google.inject.Singleton;
import network.oxalis.api.inbound.InboundMetadata;
import network.oxalis.api.inbound.InboundService;
import network.oxalis.api.statistics.StatisticsService;

/**
 * @author erlend
 * @since 4.0.2
 */
@Singleton
public class DefaultInboundService implements InboundService {

    private StatisticsService statisticsService;

    @Inject
    public DefaultInboundService(StatisticsService statisticsService) {
        this.statisticsService = statisticsService;
    }

    @Override
    public void complete(InboundMetadata inboundMetadata) {
        statisticsService.persist(inboundMetadata);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy