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

net.anotheria.extensions.php.mappers.Mapper Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package net.anotheria.extensions.php.mappers;

import net.anotheria.extensions.php.dto.PHPProducerDTO;
import net.anotheria.extensions.php.exceptions.MappingException;
import net.anotheria.moskito.core.registry.IProducerRegistry;

/**
 * Interface for producer mappers.
 *
 * Final mappers must have default public constructor to be used
 */
public interface Mapper {

    /**
     * Updates producer in given
     * registry with given stats data.
     *
     * Creates and registers new producer if producer with given id not exists.
     *
     * @param producerRegistry registry of producers to update
     * @param producerDTO new producers stats data to be applied
     */
    void mapProducer(IProducerRegistry producerRegistry, PHPProducerDTO producerDTO) throws MappingException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy