本文整理匯總了Java中org.javamoney.moneta.spi.LoaderService.addLoaderListener方法的典型用法代碼示例。如果您正苦於以下問題:Java LoaderService.addLoaderListener方法的具體用法?Java LoaderService.addLoaderListener怎麽用?Java LoaderService.addLoaderListener使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.javamoney.moneta.spi.LoaderService
的用法示例。
在下文中一共展示了LoaderService.addLoaderListener方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: IMFRateProvider
import org.javamoney.moneta.spi.LoaderService; //導入方法依賴的package包/類
public IMFRateProvider() {
super(CONTEXT);
LoaderService loader = Bootstrap.getService(LoaderService.class);
loader.addLoaderListener(this, DATA_ID);
try {
loader.loadData(DATA_ID);
} catch (IOException e) {
LOGGER.log(Level.WARNING, "Error loading initial data from IMF provider...", e);
}
}
示例2: ECBAbstractRateProvider
import org.javamoney.moneta.spi.LoaderService; //導入方法依賴的package包/類
public ECBAbstractRateProvider(ProviderContext context) {
super(context);
saxParserFactory.setNamespaceAware(false);
saxParserFactory.setValidating(false);
LoaderService loader = Bootstrap.getService(LoaderService.class);
loader.addLoaderListener(this, getDataId());
loader.loadDataAsync(getDataId());
}
示例3: initalize
import org.javamoney.moneta.spi.LoaderService; //導入方法依賴的package包/類
private void initalize() {
saxParserFactory.setNamespaceAware(false);
saxParserFactory.setValidating(false);
LoaderService loader = Bootstrap.getService(LoaderService.class);
loader.addLoaderListener(this, getDataId());
try {
loader.loadDataAsync(getDataId());
} catch(Exception e) {
throw new RuntimeException(e);
}
}
示例4: YahooAbstractRateProvider
import org.javamoney.moneta.spi.LoaderService; //導入方法依賴的package包/類
YahooAbstractRateProvider(ProviderContext context) {
super(context);
this.context = context;
final LoaderService loader = Bootstrap.getService(LoaderService.class);
loader.addLoaderListener(this, getDataId());
loader.loadDataAsync(getDataId());
}
示例5: ECBAbstractRateProvider
import org.javamoney.moneta.spi.LoaderService; //導入方法依賴的package包/類
ECBAbstractRateProvider(ProviderContext context) {
super(context);
this.context = context;
saxParserFactory.setNamespaceAware(false);
saxParserFactory.setValidating(false);
LoaderService loader = Bootstrap.getService(LoaderService.class);
loader.addLoaderListener(this, getDataId());
loader.loadDataAsync(getDataId());
}
示例6: IMFRateProvider
import org.javamoney.moneta.spi.LoaderService; //導入方法依賴的package包/類
public IMFRateProvider() {
super(CONTEXT);
LoaderService loader = Bootstrap.getService(LoaderService.class);
loader.addLoaderListener(this, DATA_ID);
try {
loader.loadData(DATA_ID);
} catch (IOException e) {
LOG.log(Level.WARNING, "Error loading initial data from IMF provider...", e);
}
}
示例7: IMFHistoricRateProvider
import org.javamoney.moneta.spi.LoaderService; //導入方法依賴的package包/類
public IMFHistoricRateProvider() {
super(CONTEXT);
LoaderService loader = Bootstrap.getService(LoaderService.class);
loader.addLoaderListener(this, DATA_ID);
try {
loader.loadData(DATA_ID);
} catch (IOException e) {
LOG.log(Level.WARNING, "Error loading initial data from IMF provider...", e);
}
}