org.apache.tamaya.optional

## Interface ValueProvider

-     public interface ValueProvider

  Simple (functional) interface, compatible with Java 7 that models a component that provides values. It is the `EvaluationPolicy` that also must be passed, when creating an `OptionalConfiguration`, which is defining if values from this provider are overriding values from Tamaya (if available) or vice versa. This provider interface must be implemented by the client that wants to optionally enhance its code with optional Tamaya configuration support to create a bridge between his code and the values optionally returned by Tamaya.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `get(String key, Class<T> type)` Access a typed value given a (non empty) key.

- - ### Method Detail

    - #### get

          <T> T get(String key,
                  Class<T> type)

      Access a typed value given a (non empty) key.
      Type Parameters:
        `T` - the type
      Parameters:
        `key` - the key, not null.
        `type` - the type, not null.
      Returns:
        the value found, or null.

Copyright © 2014–2016 Apache Software Foundation. All rights reserved.