@Configuration @ConditionalOnProperty(value="spring.cloud.service-registry.enabled", matchIfMissing=true) @AutoConfigureBefore(value=org.springframework.cloud.client.serviceregistry.ServiceRegistryAutoConfiguration.class) 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() |
public ZookeeperServiceRegistryAutoConfiguration()
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
@Bean public ZookeeperServiceRegistry zookeeperServiceRegistry()
@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 © 2018 Pivotal Software, Inc.. All rights reserved.