Java Code Examples for org.springframework.beans.factory.annotation.Autowire#BY_NAME
The following examples show how to use
org.springframework.beans.factory.annotation.Autowire#BY_NAME .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AppConfiguration.java From searchanalytics-bigdata with MIT License | 6 votes |
@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"); }
Example 2
Source File: GspAutoConfiguration.java From grails-boot with Apache License 2.0 | 5 votes |
@Bean(autowire=Autowire.BY_NAME) @ConditionalOnMissingBean(name="groovyPagesTemplateEngine") GroovyPagesTemplateEngine groovyPagesTemplateEngine() { GroovyPagesTemplateEngine templateEngine = new GroovyPagesTemplateEngine(); templateEngine.setReloadEnabled(gspReloadingEnabled); return templateEngine; }
Example 3
Source File: RedisConfiguration.java From heimdall with Apache License 2.0 | 4 votes |
/** * Configures and returns a {@link RedissonClient}. * * @return {@link RedissonClient} */ @Bean(autowire = Autowire.BY_NAME) public RedissonClient redissonClientRateLimitInterceptor() { return createConnection(ConstantsCache.RATE_LIMIT_DATABASE); }
Example 4
Source File: RedisConfiguration.java From heimdall with Apache License 2.0 | 4 votes |
@Bean(autowire = Autowire.BY_NAME) public RedissonClient redissonClientCacheInterceptor() { return createConnection(ConstantsCache.CACHE_INTERCEPTOR_DATABASE); }
Example 5
Source File: RedisConfiguration.java From heimdall with Apache License 2.0 | 4 votes |
/** * Returns a configured {@link RedissonClient}. * * @return {@link RedissonClient} */ @Bean(autowire = Autowire.BY_NAME) public RedissonClient redissonClientRateLimitInterceptor() { return createConnection(ConstantsCache.RATE_LIMIT_DATABASE); }
Example 6
Source File: RedisConfiguration.java From heimdall with Apache License 2.0 | 4 votes |
@Bean(autowire = Autowire.BY_NAME) public RedissonClient redissonClientCacheInterceptor() { return createConnection(ConstantsCache.CACHE_INTERCEPTOR_DATABASE); }
Example 7
Source File: AppConfiguration.java From searchanalytics-bigdata with MIT License | 4 votes |
/** * 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")); }
Example 8
Source File: GspAutoConfiguration.java From grails-boot with Apache License 2.0 | 4 votes |
@Bean(autowire = Autowire.BY_NAME) public TagLibraryResolverImpl jspTagLibraryResolver() { return new TagLibraryResolverImpl(); }