Package com.opengamma.financial.currency

Examples of com.opengamma.financial.currency.ConfigDBCurrencyPairsSource


                                            getCombinedConfigSource(),
                                            getUserConfigMaster(),
                                            getUserPortfolioMaster(),
                                            getUserPositionMaster(),
                                            getPortfolioAggregationFunctions().getMappedFunctions());
    CurrencyPairsSource currencyPairsSource = new ConfigDBCurrencyPairsSource(configSource);
    // TODO should be able to configure the currency pairs
    CurrencyPairs currencyPairs = currencyPairsSource.getCurrencyPairs(CurrencyPairs.DEFAULT_CURRENCY_PAIRS);
    SecurityAttributeMapper blotterColumnMapper = DefaultSecurityAttributeMappings.create(currencyPairs);
    AnalyticsViewManager analyticsViewManager = new AnalyticsViewManager(getViewProcessor(),
                                                                         getParallelViewRecompilation(),
                                                                         aggregatedViewDefManager,
                                                                         getComputationTargetResolver(),
View Full Code Here


   *
   * @param repo  the component repository, only used to register secondary items like lifecycle, not null
   * @return the currency pairs source, not null
   */
  protected ConfigDBCurrencyPairsSource createCurrencyPairsSource(ComponentRepository repo) {
    return new ConfigDBCurrencyPairsSource(getConfigSource());
  }
View Full Code Here

    OpenGammaCompilationContext.setConventionSource(context, getConventionSource());
    OpenGammaCompilationContext.setSecuritySource(context, new MasterSecuritySource(getSecurityMaster()));
    OpenGammaCompilationContext.setHistoricalTimeSeriesResolver(context, new DefaultHistoricalTimeSeriesResolver(new DefaultHistoricalTimeSeriesSelector(getConfigSource()),
        getHistoricalTimeSeriesMaster()));
    final DefaultComputationTargetResolver targetResolver = new DefaultComputationTargetResolver(context.getSecuritySource());
    targetResolver.addResolver(CurrencyPairs.TYPE, new CurrencyPairsResolver(new ConfigDBCurrencyPairsSource(getConfigSource())));
    targetResolver.addResolver(CurrencyMatrixResolver.TYPE, new CurrencyMatrixResolver(new ConfigDBCurrencyMatrixSource(getConfigSource())));
    context.setRawComputationTargetResolver(targetResolver);
    context.setComputationTargetResolver(context.getRawComputationTargetResolver().atVersionCorrection(VersionCorrection.LATEST));
    OpenGammaCompilationContext.setConfigSource(context, getConfigSource());
    return context;
View Full Code Here

    return getCurrencyMatrixSource();
  }

  protected VersionedCurrencyPairsSource createCurrencyPairsSource() {
    if (getConfigSource() != null) {
      return new ConfigDBCurrencyPairsSource(getConfigSource());
    } else {
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.currency.ConfigDBCurrencyPairsSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.