本文整理汇总了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");
}
示例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;
}
示例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");
}
示例4: groovyPagesTemplateEngine
@Bean(autowire=Autowire.BY_NAME)
@ConditionalOnMissingBean(name="groovyPagesTemplateEngine")
GroovyPagesTemplateEngine groovyPagesTemplateEngine() {
GroovyPagesTemplateEngine templateEngine = new GroovyPagesTemplateEngine();
templateEngine.setReloadEnabled(gspReloadingEnabled);
return templateEngine;
}
示例5: salesEventBus
@Bean(autowire = Autowire.BY_NAME,name = "salesEventBus")
public EventBus salesEventBus() {
return new EventBus();
}
示例6: buysEventBus
@Bean(autowire = Autowire.BY_NAME,name = "buysEventBus")
public EventBus buysEventBus() {
return new EventBus();
}
示例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;
}
示例8: validationSupportChainDstu3
@Primary
@Bean(autowire = Autowire.BY_NAME, name = "myJpaValidationSupportChainDstu3")
public IValidationSupport validationSupportChainDstu3() {
return new JpaValidationSupportChainDstu3();
}
示例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;
}
示例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;
}
示例11: validationSupportChainR4
@Primary
@Bean(autowire = Autowire.BY_NAME, name = "myJpaValidationSupportChainR4")
public IValidationSupport validationSupportChainR4() {
return new JpaValidationSupportChainR4();
}
示例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"));
}
示例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"));
}
示例14: jspTagLibraryResolver
@Bean(autowire = Autowire.BY_NAME)
public TagLibraryResolverImpl jspTagLibraryResolver() {
return new TagLibraryResolverImpl();
}