Package com.opengamma.engine.function.config

Examples of com.opengamma.engine.function.config.FunctionConfigurationSource


  @Override
  protected FunctionConfigurationSource forexFunctions() {
    final FXForwardPropertiesFunctions fxForwardDefaults = new FXForwardPropertiesFunctions();
    setForexForwardDefaults(fxForwardDefaults);
    final FunctionConfigurationSource fxForwardRepository = getRepository(fxForwardDefaults);
    final FXOptionPropertiesFunctions fxOptionDefaults = new FXOptionPropertiesFunctions();
    setForexOptionDefaults(fxOptionDefaults);
    final FunctionConfigurationSource fxOptionRepository = getRepository(fxOptionDefaults);
    return CombiningFunctionConfigurationSource.of(fxForwardRepository, fxOptionRepository);
  }
View Full Code Here


  private ConfigMaster _configMaster;

  //-------------------------------------------------------------------------
  @Override
  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final FunctionConfigurationSource source = initSource();
    //final RepositoryConfigurationSource source = sorted(initSource());

    final ComponentInfo info = new ComponentInfo(FunctionConfigurationSource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteFunctionConfigurationSource.class);
View Full Code Here

   *
   * @param source the raw repository configuration source
   * @return a source that return a sorted list of functions
   */
  protected FunctionConfigurationSource sorted(final FunctionConfigurationSource source) {
    return new FunctionConfigurationSource() {

      @Override
      public FunctionConfigurationBundle getFunctionConfiguration() {
        final List<FunctionConfiguration> functions = new ArrayList<FunctionConfiguration>(source.getFunctionConfiguration().getFunctions());
        Collections.sort(functions, new Comparator<FunctionConfiguration>() {
View Full Code Here

  protected void loadFunctionConfiguration(final ConfigMaster configMaster) {
    AbstractTool<ToolContext> remoteServerTool = new AbstractTool<ToolContext>() {

      @Override
      protected void doRun() throws Exception {
        FunctionConfigurationSource functionConfigSource = getToolContext().getFunctionConfigSource();
        FunctionConfigurationDefinition definition = FunctionConfigurationDefinition.of(DEMO_FUNCTION, functionConfigSource);
        final ConfigItem<FunctionConfigurationDefinition> config = ConfigItem.of(definition, DEMO_FUNCTION, FunctionConfigurationDefinition.class);
        ConfigMasterUtils.storeByName(getToolContext().getConfigMaster(), config);
      }
    };
View Full Code Here

  @Override
  protected FunctionConfigurationSource forexFunctions() {
    final FXForwardPropertiesFunctions fxForwardDefaults = new FXForwardPropertiesFunctions();
    setForexForwardDefaults(fxForwardDefaults);
    final FunctionConfigurationSource fxForwardRepository = getRepository(fxForwardDefaults);
    final FXOptionPropertiesFunctions fxOptionDefaults = new FXOptionPropertiesFunctions();
    setForexOptionDefaults(fxOptionDefaults);
    final FunctionConfigurationSource fxOptionRepository = getRepository(fxOptionDefaults);
    return CombiningFunctionConfigurationSource.of(fxForwardRepository, fxOptionRepository);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.engine.function.config.FunctionConfigurationSource

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.