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

no.nav.registre.testnorge.consumers.ConsumerFactory Maven / Gradle / Ivy

Go to download

Consumers implementing methods for integrating with the testnorge adapters and headhunter

There is a newer version: 1.12.0-RELEASE
Show newest version
package no.nav.registre.testnorge.consumers;

import org.springframework.web.client.RestTemplate;

import no.nav.registre.testnorge.consumers.hodejegeren.HodejegerenConsumer;

public class ConsumerFactory {

    public static Consumer create(Class clazz, RestTemplate restTemplate) {

        if (clazz == HodejegerenConsumer.class) {
            return new HodejegerenConsumer("https://testnorge-hodejegeren.nais.preprod.local/api", restTemplate);
        } else {
            throw new IllegalStateException("Unexpected value: " + clazz.getName());
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy