Add named beans to JPA config

This commit is contained in:
James Agnew 2018-10-16 17:24:17 -04:00
parent 755060f91e
commit 0fbe897ca4
1 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ public abstract class BaseConfig implements SchedulingConfigurer {
@Autowired
protected Environment myEnv;
@Bean
@Bean(name = "myDaoRegistry")
public DaoRegistry daoRegistry() {
return new DaoRegistry();
}
@ -141,13 +141,13 @@ public abstract class BaseConfig implements SchedulingConfigurer {
return b.getObject();
}
@Bean
@Bean(name="mySubscriptionTriggeringProvider")
@Lazy
public SubscriptionTriggeringProvider mySubscriptionTriggeringProvider() {
public SubscriptionTriggeringProvider subscriptionTriggeringProvider() {
return new SubscriptionTriggeringProvider();
}
@Bean(autowire = Autowire.BY_TYPE)
@Bean(autowire = Autowire.BY_TYPE, name = "mySearchCoordinatorSvc")
public ISearchCoordinatorSvc searchCoordinatorSvc() {
return new SearchCoordinatorSvcImpl();
}