Package com.opengamma.integration.coppclark

Source Code of com.opengamma.integration.coppclark.CoppClarkHolidayFileTool

/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.coppclark;

import com.opengamma.component.tool.AbstractTool;
import com.opengamma.integration.tool.IntegrationToolContext;
import com.opengamma.master.holiday.HolidayMaster;
import com.opengamma.scripts.Scriptable;

/**
* Loads the holiday data from the Copp-Clark data source.
* <p>
* This will merge the input with the data already in the database.
*/
@Scriptable
public class CoppClarkHolidayFileTool extends AbstractTool<IntegrationToolContext> {

  /**
   * Main method to run the tool.
   *
   * @param args  the arguments, not null
   */
  public static void main(String[] args) {  // CSIGNORE
    new CoppClarkHolidayFileTool().initAndRun(args, IntegrationToolContext.class);
    System.exit(0);
  }

  //-------------------------------------------------------------------------
  @Override
  protected void doRun() {
    HolidayMaster master = getToolContext().getHolidayMaster();
    CoppClarkHolidayFileReader.createPopulated(master);
  }

}
TOP

Related Classes of com.opengamma.integration.coppclark.CoppClarkHolidayFileTool

TOP
Copyright © 2018 www.massapi.com. 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.