package com.cezarykluczynski.stapi.etl.location.creation.processor;

import com.cezarykluczynski.stapi.etl.mediawiki.dto.PageHeader;
import com.cezarykluczynski.stapi.etl.page.common.processor.PageHeaderProcessor;
import com.cezarykluczynski.stapi.model.location.entity.Location;
import com.google.common.collect.Lists;
import org.springframework.batch.item.support.CompositeItemProcessor;
import org.springframework.stereotype.Service;

@Service
public class LocationProcessor extends CompositeItemProcessor<PageHeader, Location> {

	public LocationProcessor(PageHeaderProcessor pageHeaderProcessor, LocationPageProcessor locationPageProcessor) {
		setDelegates(Lists.newArrayList(pageHeaderProcessor, locationPageProcessor));
	}

}
