Package com.opengamma.component

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


    }
    checkSchema(master.getSchemaVersion(), "cfg");
   
    // register
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteConfigMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, master.getUniqueIdScheme());
    repo.registerComponent(info, master);
   
    // publish
    if (isPublishRest()) {
View Full Code Here


    checkSchema(master.getSchemaVersion(), "cfg");
   
    // register
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteConfigMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, master.getUniqueIdScheme());
    repo.registerComponent(info, master);
   
    // publish
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataConfigMasterResource(master));
View Full Code Here

  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    HistoricalTimeSeriesLoader loader = createHistoricalTimeSeriesLoader(repo);
   
    ComponentInfo info = new ComponentInfo(HistoricalTimeSeriesLoader.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHistoricalTimeSeriesLoader.class);
    repo.registerComponent(info, loader);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataHistoricalTimeSeriesLoaderResource(loader));
    }
View Full Code Here

  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    HistoricalTimeSeriesLoader loader = createHistoricalTimeSeriesLoader(repo);
   
    ComponentInfo info = new ComponentInfo(HistoricalTimeSeriesLoader.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHistoricalTimeSeriesLoader.class);
    repo.registerComponent(info, loader);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataHistoricalTimeSeriesLoaderResource(loader));
    }
  }
View Full Code Here

  @Override
  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final PositionMaster master = new InMemoryPositionMaster();
    final ComponentInfo info = new ComponentInfo(PositionMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePositionMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryPositionMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);

    if (isPublishRest()) {
View Full Code Here

  @Override
  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final PositionMaster master = new InMemoryPositionMaster();
    final ComponentInfo info = new ComponentInfo(PositionMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePositionMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryPositionMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);

    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataPositionMasterResource(master));
View Full Code Here

  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final PositionMaster master = new InMemoryPositionMaster();
    final ComponentInfo info = new ComponentInfo(PositionMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePositionMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryPositionMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);

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

  @Override
  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final PortfolioMaster master = new InMemoryPortfolioMaster();
    final ComponentInfo info = new ComponentInfo(PortfolioMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePortfolioMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryPortfolioMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);

    if (isPublishRest()) {
View Full Code Here

  @Override
  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final PortfolioMaster master = new InMemoryPortfolioMaster();
    final ComponentInfo info = new ComponentInfo(PortfolioMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePortfolioMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryPortfolioMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);

    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataPortfolioMasterResource(master));
View Full Code Here

  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final PortfolioMaster master = new InMemoryPortfolioMaster();
    final ComponentInfo info = new ComponentInfo(PortfolioMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePortfolioMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryPortfolioMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);

    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataPortfolioMasterResource(master));
    }
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.