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


Java Autowire.BY_NAME属性代码示例

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


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

示例1: setupIndexMasterActor

@Bean(autowire = Autowire.BY_NAME, name = "setupIndexMasterActor")
// @Scope("prototype")
@DependsOn(value = { "actorSystem" })
public ActorRef setupIndexMasterActor() {
	final ActorSystem system = applicationContext
			.getBean(ActorSystem.class);
	final SetupIndexService setupIndexService = applicationContext
			.getBean(SetupIndexService.class);
	final SampleDataGeneratorService sampleDataGeneratorService = applicationContext
			.getBean(SampleDataGeneratorService.class);
	final IndexProductDataService indexProductData = applicationContext
			.getBean(IndexProductDataService.class);
	return system.actorOf(
			Props.create(SetupIndexMasterActor.class, setupIndexService,
					sampleDataGeneratorService, indexProductData)
					.withDispatcher("setupIndexMasterActorDispatch"),
			"setupIndexMasterActor");
}
 
开发者ID:jaibeermalik,项目名称:searchanalytics-bigdata,代码行数:18,代码来源:AppConfiguration.java

示例2: jsonObjectMapper

@Bean(name = "jsonObjectMapper", autowire = Autowire.BY_NAME)
public ObjectMapper jsonObjectMapper() {
  ObjectMapper bean = new ObjectMapper(new JsonFactory());
  bean.disableDefaultTyping();
  bean.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
  bean.disable(SerializationFeature.WRITE_NULL_MAP_VALUES);
  bean.disable(SerializationFeature.WRITE_EMPTY_JSON_ARRAYS);

  bean.setSerializationInclusion(JsonInclude.Include.NON_NULL);
  bean.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);

  //bean.registerSubtypes(LookupResult.class);
  return bean;
}
 
开发者ID:smah3sh,项目名称:mcs,代码行数:14,代码来源:MatchmakerCloudSearchConfiguration.java

示例3: setupIndexMasterActor

@Bean(autowire = Autowire.BY_NAME, name = "setupIndexMasterActor")
// @Scope("prototype")
@DependsOn(value = { "actorSystem" })
public ActorRef setupIndexMasterActor()
{
    final ActorSystem system = applicationContext.getBean(ActorSystem.class);
    final SetupIndexService setupIndexService = applicationContext.getBean(SetupIndexService.class);
    final SampleDataGeneratorService sampleDataGeneratorService = applicationContext.getBean(SampleDataGeneratorService.class);
    final IndexProductDataService indexProductData = applicationContext.getBean(IndexProductDataService.class);
    return system.actorOf(Props.create(SetupIndexMasterActor.class, setupIndexService, sampleDataGeneratorService, indexProductData)
            .withDispatcher("setupIndexMasterActorDispatch"), "setupIndexMasterActor");
}
 
开发者ID:jaibeermalik,项目名称:elasticsearch-akka,代码行数:12,代码来源:AppConfiguration.java

示例4: groovyPagesTemplateEngine

@Bean(autowire=Autowire.BY_NAME)
@ConditionalOnMissingBean(name="groovyPagesTemplateEngine") 
GroovyPagesTemplateEngine groovyPagesTemplateEngine() {
    GroovyPagesTemplateEngine templateEngine = new GroovyPagesTemplateEngine();
    templateEngine.setReloadEnabled(gspReloadingEnabled);
    return templateEngine;
}
 
开发者ID:grails,项目名称:grails-boot,代码行数:7,代码来源:GspAutoConfiguration.java

示例5: salesEventBus

@Bean(autowire = Autowire.BY_NAME,name = "salesEventBus")
public EventBus salesEventBus() {
    return new EventBus();
}
 
开发者ID:wsldl123292,项目名称:testeverything,代码行数:4,代码来源:MultipleEventBusConfig.java

示例6: buysEventBus

@Bean(autowire = Autowire.BY_NAME,name = "buysEventBus")
public EventBus buysEventBus() {
    return new EventBus();
}
 
开发者ID:wsldl123292,项目名称:testeverything,代码行数:4,代码来源:MultipleEventBusConfig.java

示例7:

@Bean(name = "myJpaValidationSupportDstu3", autowire = Autowire.BY_NAME)
public ca.uhn.fhir.jpa.dao.dstu3.IJpaValidationSupportDstu3 jpaValidationSupportDstu3() {
	ca.uhn.fhir.jpa.dao.dstu3.JpaValidationSupportDstu3 retVal = new ca.uhn.fhir.jpa.dao.dstu3.JpaValidationSupportDstu3();
	return retVal;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:BaseDstu3Config.java

示例8: validationSupportChainDstu3

@Primary
@Bean(autowire = Autowire.BY_NAME, name = "myJpaValidationSupportChainDstu3")
public IValidationSupport validationSupportChainDstu3() {
	return new JpaValidationSupportChainDstu3();
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:BaseDstu3Config.java

示例9:

@Bean(name = "myJpaValidationSupportDstu2", autowire = Autowire.BY_NAME)
public ca.uhn.fhir.jpa.dao.IJpaValidationSupportDstu2 jpaValidationSupportDstu2() {
	ca.uhn.fhir.jpa.dao.JpaValidationSupportDstu2 retVal = new ca.uhn.fhir.jpa.dao.JpaValidationSupportDstu2();
	return retVal;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:BaseDstu2Config.java

示例10:

@Bean(name = "myJpaValidationSupportR4", autowire = Autowire.BY_NAME)
public ca.uhn.fhir.jpa.dao.r4.IJpaValidationSupportR4 jpaValidationSupportR4() {
	ca.uhn.fhir.jpa.dao.r4.JpaValidationSupportR4 retVal = new ca.uhn.fhir.jpa.dao.r4.JpaValidationSupportR4();
	return retVal;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:BaseR4Config.java

示例11: validationSupportChainR4

@Primary
@Bean(autowire = Autowire.BY_NAME, name = "myJpaValidationSupportChainR4")
public IValidationSupport validationSupportChainR4() {
	return new JpaValidationSupportChainR4();
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:5,代码来源:BaseR4Config.java

示例12: actorSystem

/**
 * Actor system singleton for this application.
 */
@Bean(autowire = Autowire.BY_NAME, name = "actorSystem")
public ActorSystem actorSystem()
{
    return ActorSystem.create("SearchIndexingSystem", ConfigFactory.load().getConfig("SearchIndexingSystem"));
}
 
开发者ID:jaibeermalik,项目名称:elasticsearch-akka,代码行数:8,代码来源:AppConfiguration.java

示例13: actorSystem

/**
 * Actor system singleton for this application.
 */
@Bean(autowire = Autowire.BY_NAME, name = "actorSystem")
public ActorSystem actorSystem() {
	return ActorSystem.create("SearchIndexingSystem", ConfigFactory.load("application-akka-es.conf")
			.getConfig("SearchIndexingSystem"));
}
 
开发者ID:jaibeermalik,项目名称:searchanalytics-bigdata,代码行数:8,代码来源:AppConfiguration.java

示例14: jspTagLibraryResolver

@Bean(autowire = Autowire.BY_NAME)
public TagLibraryResolverImpl jspTagLibraryResolver() {
    return new TagLibraryResolverImpl();
}
 
开发者ID:grails,项目名称:grails-boot,代码行数:4,代码来源:GspAutoConfiguration.java


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