Package com.opengamma.financial.analytics.ircurve

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


   * @param repo  the component repository, not null
   * @param configuration  the remaining configuration, not null
   */
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    InterpolatedYieldCurveDefinitionSource source = createInterpolatedYieldCurveDefinitionSource(repo);
   
    ComponentInfo info = new ComponentInfo(InterpolatedYieldCurveDefinitionSource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteInterpolatedYieldCurveDefinitionSource.class);
    repo.registerComponent(info, source);
View Full Code Here


   *
   * @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

  private String _userClassifier;

  //-------------------------------------------------------------------------
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    InterpolatedYieldCurveDefinitionSource source = initUnderlying(repo, configuration);
   
    // add user level if requested
    InterpolatedYieldCurveDefinitionSource userSource = initUser(repo, configuration);
    if (userSource != null) {
      Collection<InterpolatedYieldCurveDefinitionSource> coll = new ArrayList<InterpolatedYieldCurveDefinitionSource>();
      coll.add(source);
      coll.add(userSource);
      source = new AggregatingInterpolatedYieldCurveDefinitionSource(coll);
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

TOP

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

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.