Package com.opengamma.core.exchange.impl

Examples of com.opengamma.core.exchange.impl.RemoteExchangeSource


    return new RemotePositionSource(uri);
  }

  public RemoteExchangeSource getExchangeSource(final String name) {
    final URI uri = _components.getComponentInfo(ExchangeSource.class, name).getUri();
    return new RemoteExchangeSource(uri);
  }
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 ExchangeSource getExchangeSource(final String name) {
    URI uri = getComponentServer().getComponentInfo(ExchangeSource.class, name).getUri();
    return new RemoteExchangeSource(uri);
  }
View Full Code Here

   * @param preferredClassifiers a list of names of classifiers in order of preference (most preferred first), or null
   * @return the best matching interface available
   */
  public ExchangeSource getExchangeSource(final List<String> preferredClassifiers) {
    URI uri = getTopLevelComponent(preferredClassifiers, ExchangeSource.class).getUri();
    return new RemoteExchangeSource(uri);
  }
View Full Code Here

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

TOP

Related Classes of com.opengamma.core.exchange.impl.RemoteExchangeSource

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.