Add named beans to JPA config
This commit is contained in:
parent
755060f91e
commit
0fbe897ca4
|
@ -70,7 +70,7 @@ public abstract class BaseConfig implements SchedulingConfigurer {
|
||||||
@Autowired
|
@Autowired
|
||||||
protected Environment myEnv;
|
protected Environment myEnv;
|
||||||
|
|
||||||
@Bean
|
@Bean(name = "myDaoRegistry")
|
||||||
public DaoRegistry daoRegistry() {
|
public DaoRegistry daoRegistry() {
|
||||||
return new DaoRegistry();
|
return new DaoRegistry();
|
||||||
}
|
}
|
||||||
|
@ -141,13 +141,13 @@ public abstract class BaseConfig implements SchedulingConfigurer {
|
||||||
return b.getObject();
|
return b.getObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean(name="mySubscriptionTriggeringProvider")
|
||||||
@Lazy
|
@Lazy
|
||||||
public SubscriptionTriggeringProvider mySubscriptionTriggeringProvider() {
|
public SubscriptionTriggeringProvider subscriptionTriggeringProvider() {
|
||||||
return new SubscriptionTriggeringProvider();
|
return new SubscriptionTriggeringProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean(autowire = Autowire.BY_TYPE)
|
@Bean(autowire = Autowire.BY_TYPE, name = "mySearchCoordinatorSvc")
|
||||||
public ISearchCoordinatorSvc searchCoordinatorSvc() {
|
public ISearchCoordinatorSvc searchCoordinatorSvc() {
|
||||||
return new SearchCoordinatorSvcImpl();
|
return new SearchCoordinatorSvcImpl();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue