当前位置: 首页>>代码示例>>Java>>正文


Java SearchStrategy.CURRENT属性代码示例

本文整理汇总了Java中org.springframework.boot.autoconfigure.condition.SearchStrategy.CURRENT属性的典型用法代码示例。如果您正苦于以下问题:Java SearchStrategy.CURRENT属性的具体用法?Java SearchStrategy.CURRENT怎么用?Java SearchStrategy.CURRENT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.springframework.boot.autoconfigure.condition.SearchStrategy的用法示例。


在下文中一共展示了SearchStrategy.CURRENT属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: integrationManagementConfigurer

@Bean(name = IntegrationManagementConfigurer.MANAGEMENT_CONFIGURER_NAME)
@ConditionalOnMissingBean(value = IntegrationManagementConfigurer.class, name = IntegrationManagementConfigurer.MANAGEMENT_CONFIGURER_NAME, search = SearchStrategy.CURRENT)
public IntegrationManagementConfigurer integrationManagementConfigurer() {
    IntegrationManagementConfigurer configurer = new IntegrationManagementConfigurer();
    configurer.setDefaultCountsEnabled(true);
    configurer.setDefaultStatsEnabled(true);
    return configurer;
}
 
开发者ID:micrometer-metrics,项目名称:micrometer,代码行数:8,代码来源:MetricsAutoConfiguration.java

示例2: mbeanExporter

@Bean
@Primary
@ConditionalOnMissingBean(value = MBeanExporter.class, search = SearchStrategy.CURRENT)
public AnnotationMBeanExporter mbeanExporter(ObjectNamingStrategy namingStrategy) {
	AnnotationMBeanExporter exporter = new AnnotationMBeanExporter();
	exporter.setRegistrationPolicy(RegistrationPolicy.FAIL_ON_EXISTING);
	exporter.setNamingStrategy(namingStrategy);
	String server = this.propertyResolver.getProperty("server", "mbeanServer");
	if (StringUtils.hasLength(server)) {
		exporter.setServer(this.beanFactory.getBean(server, MBeanServer.class));
	}
	return exporter;
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:13,代码来源:JmxAutoConfiguration.java

示例3: objectNamingStrategy

@Bean
@ConditionalOnMissingBean(value = ObjectNamingStrategy.class, search = SearchStrategy.CURRENT)
public ParentAwareNamingStrategy objectNamingStrategy() {
	ParentAwareNamingStrategy namingStrategy = new ParentAwareNamingStrategy(
			new AnnotationJmxAttributeSource());
	String defaultDomain = this.propertyResolver.getProperty("default-domain");
	if (StringUtils.hasLength(defaultDomain)) {
		namingStrategy.setDefaultDomain(defaultDomain);
	}
	return namingStrategy;
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:11,代码来源:JmxAutoConfiguration.java

示例4: configurationPropertiesBeans

@Bean
@ConditionalOnMissingBean(search = SearchStrategy.CURRENT)
public ConfigurationPropertiesBeans configurationPropertiesBeans() {
	// Since this is a BeanPostProcessor we have to be super careful not to
	// cause a cascade of bean instantiation. Knowing the *name* of the beans we
	// need is super optimal, but a little brittle (unfortunately we have no
	// choice).
	ConfigurationBeanFactoryMetaData metaData = this.context.getBean(
			ConfigurationPropertiesBindingPostProcessorRegistrar.BINDER_BEAN_NAME
					+ ".store",
			ConfigurationBeanFactoryMetaData.class);
	ConfigurationPropertiesBeans beans = new ConfigurationPropertiesBeans();
	beans.setBeanMetaDataStore(metaData);
	return beans;
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-commons,代码行数:15,代码来源:ConfigurationPropertiesRebinderAutoConfiguration.java

示例5: configurationPropertiesRebinder

@Bean
@ConditionalOnMissingBean(search = SearchStrategy.CURRENT)
public ConfigurationPropertiesRebinder configurationPropertiesRebinder(
		ConfigurationPropertiesBeans beans) {
	ConfigurationPropertiesRebinder rebinder = new ConfigurationPropertiesRebinder(
			beans);
	return rebinder;
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-commons,代码行数:8,代码来源:ConfigurationPropertiesRebinderAutoConfiguration.java

示例6: eurekaClientConfigBean

@Bean
@ConditionalOnMissingBean(value = EurekaClientConfig.class, search = SearchStrategy.CURRENT)
public EurekaClientConfigBean eurekaClientConfigBean() {
	EurekaClientConfigBean client = new EurekaClientConfigBean();
	if ("bootstrap".equals(this.env.getProperty("spring.config.name"))) {
		// We don't register during bootstrap by default, but there will be another
		// chance later.
		client.setRegisterWithEureka(false);
	}
	return client;
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-netflix,代码行数:11,代码来源:EurekaClientAutoConfiguration.java

示例7: eurekaApplicationInfoManager

@Bean
@ConditionalOnMissingBean(value = ApplicationInfoManager.class, search = SearchStrategy.CURRENT)
public ApplicationInfoManager eurekaApplicationInfoManager(
		EurekaInstanceConfig config) {
	InstanceInfo instanceInfo = new InstanceInfoFactory().create(config);
	return new ApplicationInfoManager(config, instanceInfo);
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-netflix,代码行数:7,代码来源:EurekaClientAutoConfiguration.java

示例8: eurekaClient

@Bean(destroyMethod = "shutdown")
@ConditionalOnMissingBean(value = EurekaClient.class, search = SearchStrategy.CURRENT)
public EurekaClient eurekaClient(ApplicationInfoManager manager, EurekaClientConfig config, ApplicationContext context) {
	return new CloudEurekaClient(manager, config, null, context) {
		@Override
		public synchronized void shutdown() {
			CountDownLatch latch = countDownLatch();
			if (latch.getCount() == 1) {
				latch.countDown();
			}
			super.shutdown();
		}
	};
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-netflix,代码行数:14,代码来源:EurekaClientAutoConfigurationTests.java

示例9: jsonapiErrorController

@Bean
@ConditionalOnMissingBean(value = ErrorController.class, search = SearchStrategy.CURRENT)
public BasicErrorController jsonapiErrorController(ErrorAttributes errorAttributes) {
	return new CrnkErrorController(errorAttributes, this.serverProperties.getError(), this.errorViewResolvers);
}
 
开发者ID:crnk-project,项目名称:crnk-framework,代码行数:5,代码来源:CrnkErrorControllerAutoConfiguration.java

示例10: autoConfigurationReportEndpoint

@Bean
@ConditionalOnBean(ConditionEvaluationReport.class)
@ConditionalOnMissingBean(search = SearchStrategy.CURRENT)
public AutoConfigurationReportEndpoint autoConfigurationReportEndpoint() {
	return new AutoConfigurationReportEndpoint();
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:6,代码来源:EndpointAutoConfiguration.java

示例11: errorAttributes

@Bean
@ConditionalOnMissingBean(value = ErrorAttributes.class, search = SearchStrategy.CURRENT)
public DefaultErrorAttributes errorAttributes() {
	return new DefaultErrorAttributes();
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:5,代码来源:ErrorMvcAutoConfiguration.java

示例12: basicErrorController

@Bean
@ConditionalOnMissingBean(value = ErrorController.class, search = SearchStrategy.CURRENT)
public BasicErrorController basicErrorController(ErrorAttributes errorAttributes) {
	return new BasicErrorController(errorAttributes, this.serverProperties.getError(),
			this.errorViewResolvers);
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:6,代码来源:ErrorMvcAutoConfiguration.java

示例13: serverProperties

@Bean
@ConditionalOnMissingBean(search = SearchStrategy.CURRENT)
public ServerProperties serverProperties() {
	return new ServerProperties();
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:5,代码来源:ServerPropertiesAutoConfiguration.java

示例14: propertySourcesPlaceholderConfigurer

@Bean
@ConditionalOnMissingBean(search = SearchStrategy.CURRENT)
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
	return new PropertySourcesPlaceholderConfigurer();
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:5,代码来源:PropertyPlaceholderAutoConfiguration.java

示例15: basicErrorController

@Bean
@ConditionalOnMissingBean(value = ErrorController.class, search = SearchStrategy.CURRENT)
public BasicErrorController basicErrorController(ErrorAttributes errorAttributes) {
	return new BasicErrorController(errorAttributes, this.properties.getError());
}
 
开发者ID:Nephilim84,项目名称:contestparser,代码行数:5,代码来源:ErrorMvcAutoConfiguration.java


注:本文中的org.springframework.boot.autoconfigure.condition.SearchStrategy.CURRENT属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。