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

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

Introduction

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

Prototype

public void setServiceLocatorInterface(Class<?> interfaceType) 

Source Link

Document

Set the service locator interface to use, which must have one or more methods with the signatures MyType xxx() or MyType xxx(MyIdType id) (typically, MyService getService() or MyService getService(String id) ).

Usage

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

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

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

@Bean
public ServiceLocatorFactoryBean exceptionMapperFactory() {
    ServiceLocatorFactoryBean sb = new ServiceLocatorFactoryBean();
    sb.setServiceLocatorInterface(ExceptionMapperFactory.class);
    return sb;/*from   w  w w .  j a  va2s . co  m*/
}

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

@Bean
public ServiceLocatorFactoryBean serviceLocator() {
    ServiceLocatorFactoryBean bean = new ServiceLocatorFactoryBean();
    bean.setServiceLocatorInterface(RestAdapterFactory.class);
    return bean;//w w w  .ja v  a 2s .  c  om
}

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

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

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

/**
 * Exposes the {@link HonoServerFactory} as a Spring bean.
 * /*w  w w . j a va  2  s  .  co m*/
 * @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:com.netflix.genie.core.configs.ServicesConfigTest.java

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

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

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