Package com.opengamma.financial.convention

Examples of com.opengamma.financial.convention.InMemoryConventionBundleMaster


    _futuresExternalIds = getFutures(configSource, curveNames, dates);

  }

  private Set<ExternalId> getInitialRateExternalIds(final Set<Currency> currencies) {
    final ConventionBundleMaster cbm = new InMemoryConventionBundleMaster();
    final DefaultConventionBundleSource cbs = new DefaultConventionBundleSource(cbm);
    final Set<ExternalId> externalInitialRateId = newHashSet();
    for (final Currency currency : currencies) {
      for (final String swapType : new String[]{"SWAP", "3M_SWAP", "6M_SWAP"}) {
        final String product = currency.getCode() + "_" + swapType;
View Full Code Here


  public ConventionBundleMaster getConventionBundleMaster() {
    // TODO [PLAT-637] We're using the in memory job as a hack
    synchronized (RemoteClient.class) {
      if (s_conventionBundleMaster == null) {
        s_conventionBundleMaster = new InMemoryConventionBundleMaster();
      }
      return s_conventionBundleMaster;
    }
  }
View Full Code Here

        initialRateExternalIds,
        curveNodesExternalIds);
  }

  private Set<ExternalId> getInitialRateExternalIds(final Set<Currency> currencies) {
    final ConventionBundleMaster cbm = new InMemoryConventionBundleMaster();
    final DefaultConventionBundleSource cbs = new DefaultConventionBundleSource(cbm);
    final Set<ExternalId> externalInitialRateId = newHashSet();
    for (final Currency currency : currencies) {
      for (final String swapType : new String[]{"SWAP", "3M_SWAP", "6M_SWAP"}) {
        final String product = currency.getCode() + "_" + swapType;
View Full Code Here

   
    setSecurityLoader(remoteComponentFactory.getSecurityLoader(classifierPreferences));
    setHistoricalTimeSeriesLoader(remoteComponentFactory.getHistoricalTimeSeriesLoader(classifierPreferences));
   
    // this may need customizing per-project
    setConventionBundleSource(new DefaultConventionBundleSource(new InMemoryConventionBundleMaster()));
   
    setFunctionConfigSource(remoteComponentFactory.getFunctionConfigurationSource(classifierPreferences));
  }
View Full Code Here

@Test(groups = TestGroup.UNIT)
public class InMemoryConventionBundleMasterTest {

  @Test
  public void testRepository() {
    final ConventionBundleMaster repo = new InMemoryConventionBundleMaster();
    final ConventionBundleSource source = new DefaultConventionBundleSource(repo);
    final BusinessDayConvention modified = BusinessDayConventionFactory.INSTANCE.getBusinessDayConvention("Modified Following");
    final BusinessDayConvention following = BusinessDayConventionFactory.INSTANCE.getBusinessDayConvention("Following");
    final DayCount actact = DayCountFactory.INSTANCE.getDayCount("Actual/360");
View Full Code Here

   *
   * @param repo  the component repository, only used to register secondary items like lifecycle, not null
   * @return the convention bundle master, not null
   */
  protected ConventionBundleMaster createConventionBundleMaster(ComponentRepository repo) {
    return new InMemoryConventionBundleMaster();
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.convention.InMemoryConventionBundleMaster

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.