Search in sources :

Example 1 with ObjectFactoryCreatingFactoryBean

use of org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean in project hono by eclipse.

the class HonoMessagingApplicationConfig method honoServerFactory.

/**
 * Exposes a factory for Hono Messaging instances as a Spring bean.
 *
 * @return The factory.
 */
@Bean
public ObjectFactoryCreatingFactoryBean honoServerFactory() {
    ObjectFactoryCreatingFactoryBean factory = new ObjectFactoryCreatingFactoryBean();
    factory.setTargetBeanName(BEAN_NAME_HONO_MESSAGING);
    return factory;
}
Also used : ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean) Bean(org.springframework.context.annotation.Bean) ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean)

Example 2 with ObjectFactoryCreatingFactoryBean

use of org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean in project hono by eclipse.

the class Config method serviceFactory.

/**
 * Exposes a factory for creating HTTP adapter instances.
 *
 * @return The factory bean.
 */
@Bean
public ObjectFactoryCreatingFactoryBean serviceFactory() {
    ObjectFactoryCreatingFactoryBean factory = new ObjectFactoryCreatingFactoryBean();
    factory.setTargetBeanName(BEAN_NAME_VERTX_BASED_HTTP_PROTOCOL_ADAPTER);
    return factory;
}
Also used : ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean) Bean(org.springframework.context.annotation.Bean) ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean)

Example 3 with ObjectFactoryCreatingFactoryBean

use of org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean in project hono by eclipse.

the class Config method serviceFactory.

/**
 * Exposes a factory for creating MQTT adapter instances.
 *
 * @return The factory bean.
 */
@Bean
public ObjectFactoryCreatingFactoryBean serviceFactory() {
    ObjectFactoryCreatingFactoryBean factory = new ObjectFactoryCreatingFactoryBean();
    factory.setTargetBeanName(BEAN_NAME_KURA_PROTOCOL_ADAPTER);
    return factory;
}
Also used : ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean) Bean(org.springframework.context.annotation.Bean) ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean)

Example 4 with ObjectFactoryCreatingFactoryBean

use of org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean in project hono by eclipse.

the class Config method serviceFactory.

/**
 * Exposes a factory for creating MQTT adapter instances.
 *
 * @return The factory bean.
 */
@Bean
public ObjectFactoryCreatingFactoryBean serviceFactory() {
    ObjectFactoryCreatingFactoryBean factory = new ObjectFactoryCreatingFactoryBean();
    factory.setTargetBeanName(BEAN_NAME_VERTX_BASED_MQTT_PROTOCOL_ADAPTER);
    return factory;
}
Also used : ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean) Bean(org.springframework.context.annotation.Bean) ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean)

Example 5 with ObjectFactoryCreatingFactoryBean

use of org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean in project hono by eclipse.

the class ApplicationConfig method authServerFactory.

/**
 * Exposes a factory for Authentication Server instances as a Spring bean.
 *
 * @return The factory.
 */
@Bean
public ObjectFactoryCreatingFactoryBean authServerFactory() {
    ObjectFactoryCreatingFactoryBean factory = new ObjectFactoryCreatingFactoryBean();
    factory.setTargetBeanName(BEAN_NAME_SIMPLE_AUTHENTICATION_SERVER);
    return factory;
}
Also used : ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean) Bean(org.springframework.context.annotation.Bean) ObjectFactoryCreatingFactoryBean(org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean)

Aggregations

ObjectFactoryCreatingFactoryBean (org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean)7 Bean (org.springframework.context.annotation.Bean)7