Class VcapPropertySource

java.lang.Object
org.springframework.core.env.PropertySource<org.springframework.core.env.EnumerablePropertySource<?>>
org.springframework.geode.core.env.VcapPropertySource
All Implemented Interfaces:
Iterable<String>

public class VcapPropertySource extends org.springframework.core.env.PropertySource<org.springframework.core.env.EnumerablePropertySource<?>> implements Iterable<String>
The VcapPropertySource class is a Spring PropertySource to process VCAP environment properties in Pivotal CloudFoundry.
Since:
1.0.0
See Also:
  • Method Details

    • from

      public static VcapPropertySource from(org.springframework.core.env.Environment environment)
    • from

      public static VcapPropertySource from(Properties properties)
    • from

      public static VcapPropertySource from(org.springframework.core.env.PropertySource<?> propertySource)
    • findAllPropertiesByNameMatching

      protected Set<String> findAllPropertiesByNameMatching(Predicate<String> predicate)
    • findAllPropertiesByNameMatching

      protected Set<String> findAllPropertiesByNameMatching(Iterable<String> properties, Predicate<String> predicate)
    • findAllPropertiesByValueMatching

      protected Set<String> findAllPropertiesByValueMatching(Predicate<Object> predicate)
    • findAllPropertiesByValueMatching

      protected Set<String> findAllPropertiesByValueMatching(Iterable<String> properties, Predicate<Object> predicate)
    • findAllVcapApplicationProperties

      public Set<String> findAllVcapApplicationProperties()
    • findAllVcapServicesProperties

      public Set<String> findAllVcapServicesProperties()
    • findTargetVcapServiceProperties

      public Set<String> findTargetVcapServiceProperties(Predicate<String> vcapServicePropertiesPredicate)
    • findFirstCloudCacheService

      public Optional<CloudCacheService> findFirstCloudCacheService()
    • requireFirstCloudCacheService

      public CloudCacheService requireFirstCloudCacheService()
    • findFirstCloudCacheServiceName

      public Optional<String> findFirstCloudCacheServiceName()
    • requireFirstCloudCacheServiceName

      public String requireFirstCloudCacheServiceName()
    • findUserByName

      public Optional<User> findUserByName(Service service, String targetUsername)
    • findFirstUserByRoleClusterOperator

      public Optional<User> findFirstUserByRoleClusterOperator(Service service)
    • getProperty

      @Nullable public Object getProperty(String name)
      Specified by:
      getProperty in class org.springframework.core.env.PropertySource<org.springframework.core.env.EnumerablePropertySource<?>>
    • getVcapServicePredicate

      @NonNull protected Predicate<String> getVcapServicePredicate()
    • iterator

      public Iterator<String> iterator()
      Specified by:
      iterator in interface Iterable<String>
    • withVcapServiceName

      @NonNull public VcapPropertySource withVcapServiceName(@NonNull String serviceName)
    • withVcapServicePredicate

      @NonNull public VcapPropertySource withVcapServicePredicate(@Nullable Predicate<String> vcapServicePredicate)