Package com.opengamma.component

Examples of com.opengamma.component.ComponentInfo


  private ReferenceDataProvider _referenceDataProvider;

  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    ReferenceDataProvider wrappedRefData = new PatchableReferenceDataProvider(getReferenceDataProvider());
    ComponentInfo info = new ComponentInfo(ReferenceDataProvider.class, "bloomberg");
    repo.registerComponent(info, wrappedRefData);
  }
View Full Code Here


      coll.add(userSource);
      source = new AggregatingInterpolatedYieldCurveDefinitionSource(coll);
    }
   
    // register
    ComponentInfo info = new ComponentInfo(InterpolatedYieldCurveDefinitionSource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 2);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteInterpolatedYieldCurveDefinitionSource.class);
    repo.registerComponent(info, source);
   
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataInterpolatedYieldCurveDefinitionSourceResource(source));
    }
View Full Code Here

    InterpolatedYieldCurveDefinitionSource source = new ConfigDBInterpolatedYieldCurveDefinitionSource(getUnderlyingConfigSource());
    if (getCacheManager() != null) {
      source = new EHCachingInterpolatedYieldCurveDefinitionSource(source, getCacheManager());
    }
    if (getUnderlyingClassifier() != null) {
      ComponentInfo info = new ComponentInfo(InterpolatedYieldCurveDefinitionSource.class, getUnderlyingClassifier());
      info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
      info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteInterpolatedYieldCurveDefinitionSource.class);
      repo.registerComponent(info, source);
     
      if (isPublishRest()) {
        repo.getRestComponents().publish(info, new DataInterpolatedYieldCurveDefinitionSourceResource(source));
      }
View Full Code Here

  protected InterpolatedYieldCurveDefinitionSource initUser(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    if (getUserClassifier() == null) {
      return null;
    }
    InMemoryInterpolatedYieldCurveDefinitionMaster masterAndSource = new InMemoryInterpolatedYieldCurveDefinitionMaster();
    ComponentInfo infoMaster = new ComponentInfo(InterpolatedYieldCurveDefinitionMaster.class, getUserClassifier());
    infoMaster.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    infoMaster.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteInterpolatedYieldCurveDefinitionMaster.class);
    repo.registerComponent(infoMaster, masterAndSource);
    ComponentInfo infoSource = new ComponentInfo(InterpolatedYieldCurveDefinitionSource.class, getUserClassifier());
    infoSource.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    infoSource.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteInterpolatedYieldCurveDefinitionSource.class);
    repo.registerComponent(infoSource, masterAndSource);
   
    if (isPublishRest()) {
      repo.getRestComponents().publish(infoMaster, new DataInterpolatedYieldCurveDefinitionMasterResource(masterAndSource));
      repo.getRestComponents().publish(infoSource, new DataInterpolatedYieldCurveDefinitionSourceResource(masterAndSource));
View Full Code Here

      throw new OpenGammaRuntimeException("Unable to find a default provider matching one of [" + StringUtils.join(defaultProviders, ", ")
          + "] from available providers [" + StringUtils.join(factories.keySet(), ", ") + "]");
    }
   
    InMemoryLKVLiveMarketDataProviderFactory liveMarketDataProviderFactory = new InMemoryLKVLiveMarketDataProviderFactory(defaultFactory, ImmutableMap.copyOf(factories));
    ComponentInfo info = new ComponentInfo(LiveMarketDataProviderFactory.class, getClassifier());
    repo.registerComponent(info, liveMarketDataProviderFactory);
   
    // REVIEW jonathan 2013-08-23 -- Didn't want to break backwards compatibility, but shouldn't the repository take care of supertypes?
    info = new ComponentInfo(MarketDataProviderFactory.class, getClassifier());
    repo.registerComponent(info, liveMarketDataProviderFactory);

    return liveMarketDataProviderFactory;
  }
View Full Code Here

   */
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    RegionSource source = createRegionSource(repo);
   
    ComponentInfo info = new ComponentInfo(RegionSource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteRegionSource.class);
    repo.registerComponent(info, source);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataRegionSourceResource(source));
    }
  }
View Full Code Here

  //-------------------------------------------------------------------------
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    StandardLiveDataServer server = initServer(repo);
    final ComponentInfo info = new ComponentInfo(LiveDataServer.class, getClassifier());
    repo.registerComponent(info, server);

    if (isPublishJms()) {
      publishJms(repo, server);
    }
View Full Code Here

    metaData.setJmsSubscriptionTopic(getJmsSubscriptionTopic());
    metaData.setJmsSubscriptionQueue(getJmsSubscriptionQueue());
    metaData.setJmsEntitlementTopic(getJmsEntitlementTopic());
    metaData.setJmsHeartbeatTopic(getJmsHeartbeatTopic());
    final LiveDataMetaDataProvider provider = new SimpleLiveDataMetaDataProvider(metaData);
    final ComponentInfo infoProvider = new ComponentInfo(LiveDataMetaDataProvider.class, getClassifier());
    infoProvider.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    infoProvider.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteLiveDataMetaDataProvider.class);
    repo.registerComponent(infoProvider, provider);
    repo.getRestComponents().publish(infoProvider, new DataLiveDataMetaDataProviderResource(provider));
  }
View Full Code Here

  @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);
    repo.registerComponent(info, source);

    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataRepositoryConfigurationSourceResource(source));
    }
View Full Code Here

      map.put(scheme, userSource);
      source = new DelegatingFinancialSecuritySource(source, map);
    }
   
    // register
    ComponentInfo info = new ComponentInfo(SecuritySource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 2);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteFinancialSecuritySource.class);
    repo.registerComponent(info, source);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataFinancialSecuritySourceResource(source));
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.component.ComponentInfo

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.