@Bean public ServiceLocatorFactoryBean vocabularyLoaderFactoryServiceLocatorFactoryBean() { ServiceLocatorFactoryBean bean = new ServiceLocatorFactoryBean(); bean.setServiceLocatorInterface(VocabularyLoaderFactory.class); return bean; }
@Bean public FactoryBean serviceLocatorFactoryBean() { ServiceLocatorFactoryBean factoryBean = new ServiceLocatorFactoryBean(); factoryBean.setServiceLocatorInterface(IdGeneratorFactory.class); return factoryBean; }