Java源码示例:org.springframework.cloud.contract.stubrunner.StubFinder

示例1
StubRunnerDiscoveryClient(DiscoveryClient delegate, StubFinder stubFinder,
		StubMapperProperties stubMapperProperties, String springAppName) {
	this.delegate = delegate instanceof StubRunnerDiscoveryClient
			? noOpDiscoveryClient() : delegate;
	if (log.isDebugEnabled()) {
		log.debug("Will delegate calls to discovery service [" + this.delegate
				+ "] if a stub is not found");
	}
	this.stubFinder = stubFinder;
	this.stubMapperProperties = stubMapperProperties;
}
 
示例2
StubRunnerDiscoveryClient(StubFinder stubFinder,
		StubMapperProperties stubMapperProperties, String springAppName) {
	this.delegate = noOpDiscoveryClient();
	if (log.isDebugEnabled()) {
		log.debug("Will delegate calls to discovery service [" + this.delegate
				+ "] if a stub is not found");
	}
	this.stubFinder = stubFinder;
	this.stubMapperProperties = stubMapperProperties;
}
 
示例3
@Bean
@ConditionalOnMissingBean(DiscoveryClient.class)
@ConditionalOnStubbedDiscoveryEnabled
@ConditionalOnProperty(value = "stubrunner.cloud.delegate.enabled",
		havingValue = "false", matchIfMissing = true)
public DiscoveryClient noOpStubRunnerDiscoveryClient(StubFinder stubFinder,
		StubMapperProperties stubMapperProperties,
		@Value("${spring.application.name:unknown}") String springAppName) {
	return new StubRunnerDiscoveryClient(stubFinder, stubMapperProperties,
			springAppName);
}
 
示例4
StubFinder stubFinder() {
	if (this.stubFinder == null) {
		this.stubFinder = this.beanFactory.getBean(StubFinder.class);
	}
	return this.stubFinder;
}
 
示例5
private StubFinder stubFinder() {
	if (this.stubFinder == null) {
		this.stubFinder = this.beanFactory.getBean(StubFinder.class);
	}
	return this.stubFinder;
}
 
示例6
StubbedServiceInstance(StubFinder stubFinder,
		StubMapperProperties stubMapperProperties, String serviceId) {
	this.stubFinder = stubFinder;
	this.stubMapperProperties = stubMapperProperties;
	this.serviceId = serviceId;
}
 
示例7
@Autowired
public TriggerController(StubFinder stubFinder) {
	this.stubFinder = stubFinder;
}