java.lang.Object
org.springframework.cloud.contract.stubrunner.spring.cloud.StubMapperProperties

@ConfigurationProperties("stubrunner") public class StubMapperProperties extends Object
Maps Ivy based ids to service Ids. You might want to name the service you're calling in another way than artifact id. If that's the case then this class should be used to change do the proper mapping. Just provide in your properties file for example: stubrunner.idsToServiceIds: fraudDetectionServer: someNameThatShouldMapFraudDetectionServer
Since:
1.0.0
Author:
Marcin Grzejszczak
  • Constructor Details

    • StubMapperProperties

      public StubMapperProperties()
  • Method Details

    • getIdsToServiceIds

      public Map<String,String> getIdsToServiceIds()
    • setIdsToServiceIds

      public void setIdsToServiceIds(Map<String,String> idsToServiceIds)
    • fromIvyNotationToId

      public String fromIvyNotationToId(String ivyNotation)
    • fromServiceIdToIvyNotation

      public String fromServiceIdToIvyNotation(String serviceId)