Example usage for org.springframework.beans.factory.config ServiceLocatorFactoryBean ServiceLocatorFactoryBean

List of usage examples for org.springframework.beans.factory.config ServiceLocatorFactoryBean ServiceLocatorFactoryBean

Introduction

In this page you can find the example usage for org.springframework.beans.factory.config ServiceLocatorFactoryBean ServiceLocatorFactoryBean.

Prototype

ServiceLocatorFactoryBean

Source Link

Usage

From source file:com.uimirror.location.conf.BeanOfExceptionIntitializer.java

@Bean
public ServiceLocatorFactoryBean exceptionMapperFactory() {
    ServiceLocatorFactoryBean sb = new ServiceLocatorFactoryBean();
    sb.setServiceLocatorInterface(ExceptionMapperFactory.class);
    return sb;//www .  ja v a 2s. c  om
}

From source file:com.uimirror.location.conf.BeanOfBackGroundProcessor.java

@Bean
public ServiceLocatorFactoryBean backgroundProcessorFactory() {
    ServiceLocatorFactoryBean sb = new ServiceLocatorFactoryBean();
    sb.setServiceLocatorInterface(BackgroundProcessorFactory.class);
    return sb;/*from   w ww .j a  v a2 s.  c  o  m*/
}

From source file:org.eclipse.hono.application.ApplicationConfig.java

/**
 * Exposes the {@link HonoServerFactory} as a Spring bean.
 * //from w  w  w. j  av a2s  .  c om
 * @return A Spring service locator for the factory.
 */
@Bean
public ServiceLocatorFactoryBean honoServerFactoryLocator() {
    ServiceLocatorFactoryBean bean = new ServiceLocatorFactoryBean();
    bean.setServiceLocatorInterface(HonoServerFactory.class);
    return bean;
}

From source file:org.eclipse.hono.adapter.rest.Config.java

@Bean
public ServiceLocatorFactoryBean serviceLocator() {
    ServiceLocatorFactoryBean bean = new ServiceLocatorFactoryBean();
    bean.setServiceLocatorInterface(RestAdapterFactory.class);
    return bean;//from   w  ww.j  av a2 s  .c o m
}

From source file:org.eclipse.hono.adapter.mqtt.Config.java

/**
 * Exposes a factory for creating MQTT adapter instances.
 * /*from  w  w w.  j a  v a 2 s.c o m*/
 * @return The factory bean.
 */
@Bean
public ServiceLocatorFactoryBean serviceLocator() {
    ServiceLocatorFactoryBean bean = new ServiceLocatorFactoryBean();
    bean.setServiceLocatorInterface(MqttAdapterFactory.class);
    return bean;
}

From source file:com.netflix.genie.web.configs.GenieServicesAutoConfiguration.java

/**
 * FileTransfer factory./*  ww w .  ja  v a  2 s  . c om*/
 *
 * @return FileTransfer factory
 */
@Bean
@ConditionalOnMissingBean(name = "fileTransferFactory", value = ServiceLocatorFactoryBean.class)
public ServiceLocatorFactoryBean fileTransferFactory() {
    final ServiceLocatorFactoryBean factoryBean = new ServiceLocatorFactoryBean();
    factoryBean.setServiceLocatorInterface(FileTransferFactory.class);
    return factoryBean;
}

From source file:com.netflix.genie.core.configs.ServicesConfigTest.java

/**
 * FileTransfer factory./*w  w w  . jav  a 2  s. c  o m*/
 *
 * @return FileTransfer factory
 */
@Bean
public FactoryBean fileTransferFactory() {
    final ServiceLocatorFactoryBean factoryBean = new ServiceLocatorFactoryBean();
    factoryBean.setServiceLocatorInterface(FileTransferFactory.class);
    return factoryBean;
}