Package com.opengamma.core.config.impl

Examples of com.opengamma.core.config.impl.RemoteConfigSource


   * @param preferredClassifiers a list of names of classifiers in order of preference (most preferred first), or null
   * @return the best matching master available
   */ 
  public ConfigSource getConfigSource(final List<String> preferredClassifiers) {
    ComponentInfo componentInfo = getTopLevelComponent(preferredClassifiers, ConfigSource.class);
    return new RemoteConfigSource(componentInfo.getUri());
  }
View Full Code Here


   * @param name the classifier name of the object you want to retrieve
   * @return the interface requested, or null if not present
   */
  public ConfigSource getConfigSource(final String name) {
    URI uri = getComponentServer().getComponentInfo(ConfigSource.class, name).getUri();
    return new RemoteConfigSource(uri);
  }
View Full Code Here

   * @return a map of classifier names to requested interface type
   */
  public Map<String, ConfigSource> getConfigSources() {
    Map<String, ConfigSource> result = new LinkedHashMap<String, ConfigSource>();
    for (ComponentInfo info : getComponentServer().getComponentInfos(ConfigSource.class)) {
      result.put(info.getClassifier(), new RemoteConfigSource(info.getUri()));
    }
    return result;   
  }
View Full Code Here

  }

  @Override
  public ConfigSource getConfigSource() {
    URI uri = UriBuilder.fromUri(_baseUri).path(DataViewProcessorResource.PATH_CONFIG_SOURCE).build();
    return new RemoteConfigSource(uri);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.config.impl.RemoteConfigSource

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.