public class JaxpCurrencyDirectory extends Object implements CurrencyMapper
This implementation uses XML resources provided by any available JaxpCurrenciesProvider
implementation.
Resources with a file
URI scheme are monitored for changes by querying the last modification time. Monitoring
is controlled by property reloadIntervalMillis
.
Constructor and Description |
---|
JaxpCurrencyDirectory()
Standard implementation constructor
org.jdtaus.banking.ri.currencydir.JaxpCurrencyDirectory . |
JaxpCurrencyDirectory(long reloadIntervalMillis,
long monitoringThreshold)
Creates a new
JaxpCurrencyDirectory instance taking the number of milliseconds to pass before resources
are checked for modifications and the number of currencies for which progress monitoring gets enabled. |
Modifier and Type | Method and Description |
---|---|
char |
getDtausCode(Currency currency,
Date date) |
Currency[] |
getDtausCurrencies(Date date) |
Currency |
getDtausCurrency(char code,
Date date) |
long |
getMonitoringThreshold()
Gets the number of currencies for which progress monitoring gets enabled.
|
long |
getReloadIntervalMillis()
Gets the number of milliseconds to pass before resources are checked for modifications.
|
public JaxpCurrencyDirectory()
org.jdtaus.banking.ri.currencydir.JaxpCurrencyDirectory
.public JaxpCurrencyDirectory(long reloadIntervalMillis, long monitoringThreshold)
JaxpCurrencyDirectory
instance taking the number of milliseconds to pass before resources
are checked for modifications and the number of currencies for which progress monitoring gets enabled.reloadIntervalMillis
- Number of milliseconds to pass before resources are checked for modifications.monitoringThreshold
- Number of currencies for which progress monitoring gets enabled.public char getDtausCode(Currency currency, Date date)
getDtausCode
in interface CurrencyMapper
public Currency[] getDtausCurrencies(Date date)
getDtausCurrencies
in interface CurrencyDirectory
public Currency getDtausCurrency(char code, Date date)
getDtausCurrency
in interface CurrencyMapper
public long getMonitoringThreshold()
public long getReloadIntervalMillis()
Copyright © 2005–2014 jDTAUS. All rights reserved.