Class ZookeeperPropertySource

java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<org.apache.curator.framework.CuratorFramework>
org.springframework.cloud.zookeeper.config.AbstractZookeeperPropertySource
org.springframework.cloud.zookeeper.config.ZookeeperPropertySource

public class ZookeeperPropertySource extends AbstractZookeeperPropertySource
PropertySource that stores properties from Zookeeper inside a map. Properties are loaded upon class initialization.
Since:
1.0.0
Author:
Spencer Gibb
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource

    org.springframework.core.env.PropertySource.StubPropertySource
  • Field Summary

    Fields inherited from class org.springframework.core.env.PropertySource

    logger, name, source
  • Constructor Summary

    Constructors
    Constructor
    Description
    ZookeeperPropertySource(String context, org.apache.curator.framework.CuratorFramework source)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from class org.springframework.cloud.zookeeper.config.AbstractZookeeperPropertySource

    getContext, sanitizeKey

    Methods inherited from class org.springframework.core.env.EnumerablePropertySource

    containsProperty

    Methods inherited from class org.springframework.core.env.PropertySource

    equals, getName, getSource, hashCode, named, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ZookeeperPropertySource

      public ZookeeperPropertySource(String context, org.apache.curator.framework.CuratorFramework source)
  • Method Details

    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in class org.springframework.core.env.PropertySource<org.apache.curator.framework.CuratorFramework>
    • getPropertyNames

      public String[] getPropertyNames()
      Specified by:
      getPropertyNames in class org.springframework.core.env.EnumerablePropertySource<org.apache.curator.framework.CuratorFramework>