Package com.opengamma.financial.analytics.volatility.cube.rest

Examples of com.opengamma.financial.analytics.volatility.cube.rest.DataVolatilityCubeDefinitionSourceResource


    VolatilityCubeDefinitionSource base = new ConfigDBVolatilityCubeDefinitionSource(getConfigSource());
    VolatilityCubeDefinitionSource bbg = new ExampleVolatilityCubeDefinitionSource();
    VolatilityCubeDefinitionSource combined = new AggregatingVolatilityCubeDefinitionSource(Arrays.asList(bbg, base));
    repo.registerComponent(info, combined);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataVolatilityCubeDefinitionSourceResource(combined));
    }
  }
View Full Code Here


    if (isBloomberg()) {
      VolatilityCubeDefinitionSource bbg = new BloombergVolatilityCubeDefinitionSource();
      VolatilityCubeDefinitionSource combined = new AggregatingVolatilityCubeDefinitionSource(Arrays.asList(bbg, base));
      repo.registerComponent(info, combined);
      if (isPublishRest()) {
        repo.getRestComponents().publish(info, new DataVolatilityCubeDefinitionSourceResource(combined));
      }
    } else {
      repo.registerComponent(info, base);
      if (isPublishRest()) {
        repo.getRestComponents().publish(info, new DataVolatilityCubeDefinitionSourceResource(base));
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.analytics.volatility.cube.rest.DataVolatilityCubeDefinitionSourceResource

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.