Search in sources :

Example 1 with ExchangeRateProvider

use of name.abuchen.portfolio.money.ExchangeRateProvider in project portfolio by buchen.

the class StartupAddon method updateExchangeRates.

@PostConstruct
public void updateExchangeRates(IEventBroker broker, ExchangeRateProviderFactory factory) {
    for (final ExchangeRateProvider provider : factory.getProviders()) {
        Job job = new UpdateExchangeRatesJob(broker, factory, provider);
        job.schedule();
    }
}
Also used : ExchangeRateProvider(name.abuchen.portfolio.money.ExchangeRateProvider) Job(org.eclipse.core.runtime.jobs.Job) PostConstruct(javax.annotation.PostConstruct)

Aggregations

PostConstruct (javax.annotation.PostConstruct)1 ExchangeRateProvider (name.abuchen.portfolio.money.ExchangeRateProvider)1 Job (org.eclipse.core.runtime.jobs.Job)1