package com.ankurm.hsc.snippets;

import com.ankurm.hsc.client.PostClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.service.registry.HttpServiceGroup;
import org.springframework.web.service.registry.ImportHttpServices;

/**
 * A group backed by WebClient instead of RestClient. Compiled against Spring Framework 7.0.10
 * (the enum constant exists, checked with javap); NOT executed: it needs spring-webflux on the
 * classpath, which this module deliberately does not have.
 */
@Configuration(proxyBeanMethods = false)
@ImportHttpServices(group = "reactive", types = PostClient.class, clientType = HttpServiceGroup.ClientType.WEB_CLIENT)
class WebClientGroup {
}
