Package com.opengamma.financial.currency

Examples of com.opengamma.financial.currency.ConfigDBCurrencyMatrixSource


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


    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 resolver;
  }

  protected CurrencyMatrixSource createCurrencyMatrixSource() {
    if (getConfigSource() != null) {
      return new ConfigDBCurrencyMatrixSource(getConfigSource());
    } else {
      return null;
    }
  }
View Full Code Here

TOP

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

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.