Package com.opengamma.master.position.impl

Examples of com.opengamma.master.position.impl.MasterPositionSource


  }

  //-------------------------------------------------------------------------
  @Override
  protected PositionSource createObject() {
    PositionSource source = new MasterPositionSource(getPortfolioMaster(), getPositionMaster());
    if (getCacheManager() != null) {
      source = new EHCachingPositionSource(source, getCacheManager());
    }
    return source;
  }
View Full Code Here


      repo.getRestComponents().publish(info, new DataPositionSourceResource(source));
    }
  }

  protected PositionSource initUnderlying(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    PositionSource source = new MasterPositionSource(getUnderlyingPortfolioMaster(), getUnderlyingPositionMaster());
    if (getCacheManager() != null) {
      source = new EHCachingPositionSource(source, getCacheManager());
    }
    if (getUnderlyingClassifier() != null) {
      final ComponentInfo info = new ComponentInfo(PositionSource.class, getUnderlyingClassifier());
View Full Code Here

  protected PositionSource initUser(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    if (getUserPortfolioMaster() == null || getUserPositionMaster() == null) {
      return null;
    }
    final PositionSource source = new MasterPositionSource(getUserPortfolioMaster(), getUserPositionMaster());
    if (getUserClassifier() != null) {
      final ComponentInfo info = new ComponentInfo(PositionSource.class, getUserClassifier());
      info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
      info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePositionSource.class);
      repo.registerComponent(info, source);
View Full Code Here

   *
   * @param repo  the component repository, only used to register secondary items like lifecycle, not null
   * @return the position source, not null
   */
  protected PositionSource createPositionSource(ComponentRepository repo) {
    PositionSource source = new MasterPositionSource(getPortfolioMaster(), getPositionMaster());
    if (getCacheManager() != null) {
      source = new EHCachingPositionSource(source, getCacheManager());
    }
    return source;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.master.position.impl.MasterPositionSource

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.