Package com.opengamma.component

Examples of com.opengamma.component.ComponentInfo.addAttribute()


    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);
View Full Code Here


      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);
View Full Code Here

    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));
View Full Code Here

    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

  @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

  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

    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

    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

  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

    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

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.