network.oxalis.inbound.DefaultInboundService Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy