Examples of EHCachingPositionSource


Examples of com.opengamma.core.position.impl.EHCachingPositionSource

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

Examples of com.opengamma.core.position.impl.EHCachingPositionSource

  }

  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());
      info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
      info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePositionSource.class);
View Full Code Here

Examples of com.opengamma.core.position.impl.EHCachingPositionSource

   * @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
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.