Interface ConfigurationQuery<A extends ConfigurationQuery<A,B>,B extends ExecutableConfigurationQuery<A,B>>

Type Parameters:
A - the query type
B - the executable query type
All Known Implementing Classes:
AbstractHashConfigurationSource.HashConfigurationQuery, AbstractPropertiesConfigurationSource.PropertyConfigurationQuery, CompositeConfigurationSource.CompositeConfigurationQuery, RedisConfigurationSource.RedisConfigurationQuery, VersionedRedisConfigurationSource.VersionedRedisConfigurationQuery

public interface ConfigurationQuery<A extends ConfigurationQuery<A,B>,B extends ExecutableConfigurationQuery<A,B>>

A configuration query is used to query configuration properties from a configuration source.

Note that a single query can result in multiple results being returned if multiple properties have been requested.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String... names)
    Returns an executable query that retrieves the specified properties.
  • Method Details

    • get

      B get(String... names) throws IllegalArgumentException

      Returns an executable query that retrieves the specified properties.

      Parameters:
      names - a list of properties to retrieve
      Returns:
      an executable query
      Throws:
      IllegalArgumentException - if the array of names is null or empty