org.springframework.beans.factory.config.ServiceLocatorFactoryBean Java Examples

The following examples show how to use org.springframework.beans.factory.config.ServiceLocatorFactoryBean. 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: ServicesAutoConfiguration.java    From genie with Apache License 2.0 5 votes vote down vote up
/**
 * FileTransfer factory.
 *
 * @return FileTransfer factory
 */
@Bean
@ConditionalOnMissingBean(name = "fileTransferFactory", value = ServiceLocatorFactoryBean.class)
public ServiceLocatorFactoryBean fileTransferFactory() {
    final ServiceLocatorFactoryBean factoryBean = new ServiceLocatorFactoryBean();
    factoryBean.setServiceLocatorInterface(FileTransferFactory.class);
    return factoryBean;
}
 
Example #2
Source File: ParserConfig.java    From sfg-blog-posts with GNU General Public License v3.0 4 votes vote down vote up
@Bean("parserFactory")
public FactoryBean serviceLocatorFactoryBean() {
  ServiceLocatorFactoryBean factoryBean = new ServiceLocatorFactoryBean();
  factoryBean.setServiceLocatorInterface(ContentType.ParserFactory.class);
  return factoryBean;
}
 
Example #3
Source File: RefreshConfiguration.java    From vault-crd with Apache License 2.0 4 votes vote down vote up
@Bean("typeRefreshFactory")
public ServiceLocatorFactoryBean slfbForTypeRefresh() {
    ServiceLocatorFactoryBean slfb = new ServiceLocatorFactoryBean();
    slfb.setServiceLocatorInterface(TypeRefreshFactory.class);
    return slfb;
}
 
Example #4
Source File: VaultConfiguration.java    From vault-crd with Apache License 2.0 4 votes vote down vote up
@Bean
public ServiceLocatorFactoryBean slfbForTypeRefresh() {
    ServiceLocatorFactoryBean slfb = new ServiceLocatorFactoryBean();
    slfb.setServiceLocatorInterface(TypedSecretGeneratorFactory.class);
    return slfb;
}