Module java.money

Class ProviderContext

java.lang.Object
javax.money.AbstractContext
javax.money.convert.ProviderContext
All Implemented Interfaces:
java.io.Serializable

public final class ProviderContext
extends AbstractContext
This class describes what kind of ExchangeRates a .ExchangeRateProvider delivers, including the provider's name, rate type and additional data. By default such a context supports the following attributes:
  • a unique non localizable provider name. This provider name is also used to identify a concrete instance of ExchangeRateProvider.
  • a set of RateType an ExchangeRateProvider supports
  • a time range for which an ExchangeRateProvider delivers rates.
Additionally a instance of ProviderContext can have arbitrary additional attributes describing more precisely the capabilities of a concrete ExchangeRateProvider} implementation.

Instances of this class are immutable and thread-safe.

Author:
Anatole Tresch, Werner Keil
See Also:
Serialized Form
  • Method Details