Package com.opengamma.component

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


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


  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    ConfigSource source = createConfigSource(repo);
   
    ComponentInfo info = new ComponentInfo(ConfigSource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteConfigSource.class);
    repo.registerComponent(info, source);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataConfigSourceResource(source));
    }
  }
View Full Code Here

  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    NonVersionedRedisSecuritySource source = new NonVersionedRedisSecuritySource(getRedisConnector().getJedisPool(), getRedisPrefix());
   
    ComponentInfo sourceInfo = new ComponentInfo(SecuritySource.class, getClassifier());
    sourceInfo.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    sourceInfo.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteSecuritySource.class);
    repo.registerComponent(sourceInfo, source);

    ComponentInfo redisInfo = new ComponentInfo(NonVersionedRedisSecuritySource.class, getClassifier());
    redisInfo.addAttribute(ComponentInfoAttributes.LEVEL, 1);
View Full Code Here

  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    NonVersionedRedisSecuritySource source = new NonVersionedRedisSecuritySource(getRedisConnector().getJedisPool(), getRedisPrefix());
   
    ComponentInfo sourceInfo = new ComponentInfo(SecuritySource.class, getClassifier());
    sourceInfo.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    sourceInfo.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteSecuritySource.class);
    repo.registerComponent(sourceInfo, source);

    ComponentInfo redisInfo = new ComponentInfo(NonVersionedRedisSecuritySource.class, getClassifier());
    redisInfo.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    repo.registerComponent(redisInfo, source);
View Full Code Here

    sourceInfo.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    sourceInfo.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteSecuritySource.class);
    repo.registerComponent(sourceInfo, source);

    ComponentInfo redisInfo = new ComponentInfo(NonVersionedRedisSecuritySource.class, getClassifier());
    redisInfo.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    repo.registerComponent(redisInfo, source);
   
    if (isPublishRest()) {
      repo.getRestComponents().publish(sourceInfo, new DataSecuritySourceResource(source));
    }
View Full Code Here

   */
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    final SecurityEnhancer loader = createSecurityEnhancer(repo);
    final ComponentInfo info = new ComponentInfo(SecurityEnhancer.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteSecurityEnhancer.class);
    repo.registerComponent(info, loader);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataSecurityEnhancerResource(loader));
    }
View Full Code Here

    if (getJmsChangeManagerTopic() != null) {
      JmsChangeManager cm = new JmsChangeManager(getJmsConnector(), getJmsChangeManagerTopic());
      master.setChangeManager(cm);
      repo.registerLifecycle(cm);
      if (getJmsConnector().getClientBrokerUri() != null) {
        info.addAttribute(ComponentInfoAttributes.JMS_BROKER_URI, getJmsConnector().getClientBrokerUri().toString());
      }
      info.addAttribute(ComponentInfoAttributes.JMS_CHANGE_MANAGER_TOPIC, getJmsChangeManagerTopic());
    }
    checkSchema(master.getSchemaVersion(), "cfg");
   
View Full Code Here

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

      master.setChangeManager(cm);
      repo.registerLifecycle(cm);
      if (getJmsConnector().getClientBrokerUri() != null) {
        info.addAttribute(ComponentInfoAttributes.JMS_BROKER_URI, getJmsConnector().getClientBrokerUri().toString());
      }
      info.addAttribute(ComponentInfoAttributes.JMS_CHANGE_MANAGER_TOPIC, getJmsChangeManagerTopic());
    }
    checkSchema(master.getSchemaVersion(), "cfg");
   
    // register
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
View Full Code Here

      info.addAttribute(ComponentInfoAttributes.JMS_CHANGE_MANAGER_TOPIC, getJmsChangeManagerTopic());
    }
    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
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.