@Bean(name = "zookeeper-service-registry") @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON) public ZooKeeperServiceRegistry zookeeperServiceRegistry(ZooKeeperServiceRegistryConfiguration configuration) throws Exception { ZooKeeperServiceRegistry service = new ZooKeeperServiceRegistry(); IntrospectionSupport.setProperties( service, IntrospectionSupport.getNonNullProperties(configuration) ); return service; } }
@Bean(name = "zookeeper-cluster-service") @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON) public CamelClusterService zookeeperClusterService() throws Exception { ZooKeeperClusterService service = new ZooKeeperClusterService(); IntrospectionSupport.setProperties( service, IntrospectionSupport.getNonNullProperties(configuration) ); return service; } }
@Bean(name = "jgroups-lock-cluster-service") @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON) public CamelClusterService zookeeperClusterService() throws Exception { JGroupsLockClusterService service = new JGroupsLockClusterService(); IntrospectionSupport.setProperties( service, IntrospectionSupport.getNonNullProperties(configuration) ); return service; } }
@Lazy @Bean(name = "ribbon-load-balancer") @ConditionalOnClass(CamelContext.class) public ServiceLoadBalancer configureLoadBalancerFactory() throws Exception { RibbonServiceLoadBalancerFactory factory = new RibbonServiceLoadBalancerFactory(); IntrospectionSupport.setProperties( camelContext, camelContext.getTypeConverter(), factory, IntrospectionSupport.getNonNullProperties(configuration)); return factory.newInstance(camelContext); }
@Lazy @Bean(name = "dns-service-discovery") @ConditionalOnClass(CamelContext.class) public ServiceDiscovery configureServiceDiscoveryFactory() throws Exception { DnsServiceDiscoveryFactory factory = new DnsServiceDiscoveryFactory(); IntrospectionSupport.setProperties( camelContext, camelContext.getTypeConverter(), factory, IntrospectionSupport.getNonNullProperties(configuration)); return factory.newInstance(camelContext); }