Package com.opengamma.engine.target.lazy

Examples of com.opengamma.engine.target.lazy.LazyResolveContext


      }

      @Override
      protected Position position(final Position position) {
        return new TargetResolverPosition(atVersionCorrection(VersionCorrection.LATEST), new LazyResolvedPosition(
            new LazyResolveContext(getSecuritySource(), null).atVersionCorrection(VersionCorrection.LATEST), new SimplePosition(position)));
      }

      @Override
      protected Trade trade(final Trade trade) {
        return new TargetResolverTrade(atVersionCorrection(VersionCorrection.LATEST), new LazyResolvedTrade(
            new LazyResolveContext(getSecuritySource(), null).atVersionCorrection(VersionCorrection.LATEST), new SimpleTrade(trade)));
      }

      @Override
      protected SecurityLink security(final Security security) {
        return new SimpleSecurityLink(security.getExternalIdBundle());
View Full Code Here


    _cacheManager = cacheManager;
    EHCacheUtils.addCache(cacheManager, COMPUTATIONTARGET_CACHE);
    _computationTarget = EHCacheUtils.getCacheFromManager(cacheManager, COMPUTATIONTARGET_CACHE);
    if (underlying instanceof LazyResolver) {
      final LazyResolver lazyUnderlying = (LazyResolver) underlying;
      final LazyResolveContext context = lazyUnderlying.getLazyResolveContext();
      _lazyResolveContext = new LazyResolveContext(context.getSecuritySource(), this);
      lazyUnderlying.setLazyResolveContext(_lazyResolveContext);
    } else {
      _lazyResolveContext = new LazyResolveContext(underlying.getSecuritySource(), this);
    }
    VersionCorrectionUtils.addVersionCorrectionLockListener(_frontCacheCleaner);
  }
View Full Code Here

    }
    addResolver(ComputationTargetType.CURRENCY);
    addResolver(ComputationTargetType.PRIMITIVE);
    addResolver(ComputationTargetType.UNORDERED_CURRENCY_PAIR);
    addResolver(ComputationTargetType.CREDIT_CURVE_IDENTIFIER);
    _lazyResolveContext = new LazyResolveContext(securitySource, null);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.engine.target.lazy.LazyResolveContext

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.