Class EurekaStubsRegistrar
java.lang.Object
org.springframework.cloud.contract.stubrunner.spring.cloud.eureka.EurekaStubsRegistrar
- All Implemented Interfaces:
AutoCloseable,StubsRegistrar
Registers all stubs in Eureka Service Discovery.
- Since:
- 1.0.0
- Author:
- Marcin Grzejszczak
-
Constructor Summary
ConstructorsConstructorDescriptionEurekaStubsRegistrar(StubRunning stubRunning, org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration> serviceRegistry, StubMapperProperties stubMapperProperties, org.springframework.cloud.commons.util.InetUtils inetUtils, org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean eurekaInstanceConfigBean, org.springframework.cloud.netflix.eureka.EurekaClientConfigBean eurekaClientConfigBean, org.springframework.context.ApplicationContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected StringhostName(Map.Entry<StubConfiguration, Integer> entry) protected intport(Map.Entry<StubConfiguration, Integer> entry) void
-
Constructor Details
-
EurekaStubsRegistrar
public EurekaStubsRegistrar(StubRunning stubRunning, org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration> serviceRegistry, StubMapperProperties stubMapperProperties, org.springframework.cloud.commons.util.InetUtils inetUtils, org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean eurekaInstanceConfigBean, org.springframework.cloud.netflix.eureka.EurekaClientConfigBean eurekaClientConfigBean, org.springframework.context.ApplicationContext context)
-
-
Method Details
-
registerStubs
public void registerStubs()- Specified by:
registerStubsin interfaceStubsRegistrar
-
hostName
-
port
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-