Search in sources :

Example 6 with ObjectFactoryCreatingFactoryBean

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

the class ApplicationConfig method deviceRegistryRestServerFactory.

/**
 * Gets a factory for creating instances of the REST based endpoint.
 *
 * @return The factory.
 */
@Bean
public ObjectFactoryCreatingFactoryBean deviceRegistryRestServerFactory() {
    ObjectFactoryCreatingFactoryBean factory = new ObjectFactoryCreatingFactoryBean();
    factory.setTargetBeanName(BEAN_NAME_DEVICE_REGISTRY_REST_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)

Example 7 with ObjectFactoryCreatingFactoryBean

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

the class ApplicationConfig method deviceRegistryAmqpServerFactory.

/**
 * Gets a factory for creating instances of the AMQP 1.0 based endpoint.
 *
 * @return The factory.
 */
@Bean
public ObjectFactoryCreatingFactoryBean deviceRegistryAmqpServerFactory() {
    ObjectFactoryCreatingFactoryBean factory = new ObjectFactoryCreatingFactoryBean();
    factory.setTargetBeanName(BEAN_NAME_DEVICE_REGISTRY_AMQP_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