Package com.opengamma.financial.analytics.ircurve

Examples of com.opengamma.financial.analytics.ircurve.ConfigDBInterpolatedYieldCurveDefinitionSource


   *
   * @param repo  the component repository, only used to register secondary items like lifecycle, not null
   * @return the source, not null
   */
  protected InterpolatedYieldCurveDefinitionSource createInterpolatedYieldCurveDefinitionSource(ComponentRepository repo) {
    InterpolatedYieldCurveDefinitionSource source = new ConfigDBInterpolatedYieldCurveDefinitionSource(getConfigSource());
    if (getCacheManager() != null) {
      source = new EHCachingInterpolatedYieldCurveDefinitionSource(source, getCacheManager());
    }
    return source;
  }
View Full Code Here


      repo.getRestComponents().publish(info, new DataInterpolatedYieldCurveDefinitionSourceResource(source));
    }
  }

  protected InterpolatedYieldCurveDefinitionSource initUnderlying(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    InterpolatedYieldCurveDefinitionSource source = new ConfigDBInterpolatedYieldCurveDefinitionSource(getUnderlyingConfigSource());
    if (getCacheManager() != null) {
      source = new EHCachingInterpolatedYieldCurveDefinitionSource(source, getCacheManager());
    }
    if (getUnderlyingClassifier() != null) {
      ComponentInfo info = new ComponentInfo(InterpolatedYieldCurveDefinitionSource.class, getUnderlyingClassifier());
View Full Code Here

    return context;
  }

  private FunctionCompilationContext createFunctionCompilationContext() {
    final FunctionCompilationContext context = new FunctionCompilationContext();
    OpenGammaCompilationContext.setInterpolatedYieldCurveDefinitionSource(context, new ConfigDBInterpolatedYieldCurveDefinitionSource(getConfigSource()));
    OpenGammaCompilationContext.setInterpolatedYieldCurveSpecificationBuilder(context, new ConfigDBInterpolatedYieldCurveSpecificationBuilder(getConfigSource()));
    context.setFunctionReinitializer(new DummyFunctionReinitializer());
    OpenGammaCompilationContext.setHolidaySource(context, getHolidaySource());
    OpenGammaCompilationContext.setRegionSource(context, getRegionSource());
    OpenGammaCompilationContext.setOrganizationSource(context, getOrganizationSource());
View Full Code Here

TOP

Related Classes of com.opengamma.financial.analytics.ircurve.ConfigDBInterpolatedYieldCurveDefinitionSource

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.