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
ConstructorDescriptionEurekaStubsRegistrar
(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 TypeMethodDescriptionvoid
close()
protected String
hostName
(Map.Entry<StubConfiguration, Integer> entry) protected int
port
(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:
registerStubs
in interfaceStubsRegistrar
-
hostName
-
port
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-