@Configuration
@ConditionalOnProperty(value="spring.cloud.service-registry.enabled",
matchIfMissing=true)
public class ZookeeperServiceRegistryAutoConfiguration
extends Object
implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
ZookeeperServiceRegistryAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.curator.x.discovery.details.InstanceSerializer<ZookeeperInstance> |
instanceSerializer() |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
ZookeeperDiscoveryProperties |
zookeeperDiscoveryProperties(org.springframework.cloud.commons.util.InetUtils inetUtils) |
ZookeeperServiceRegistry |
zookeeperServiceRegistry(ZookeeperDiscoveryProperties properties,
org.apache.curator.framework.CuratorFramework curator) |
public ZookeeperServiceRegistryAutoConfiguration()
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException@Bean public ZookeeperServiceRegistry zookeeperServiceRegistry(ZookeeperDiscoveryProperties properties, org.apache.curator.framework.CuratorFramework curator)
@Bean @ConditionalOnMissingBean public org.apache.curator.x.discovery.details.InstanceSerializer<ZookeeperInstance> instanceSerializer()
@Bean @ConditionalOnMissingBean public ZookeeperDiscoveryProperties zookeeperDiscoveryProperties(org.springframework.cloud.commons.util.InetUtils inetUtils)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.