Package com.opengamma.financial.security

Examples of com.opengamma.financial.security.EHCachingFinancialSecuritySource


  //-------------------------------------------------------------------------
  @Override
  protected FinancialSecuritySource createObject() {
    FinancialSecuritySource source = new MasterFinancialSecuritySource(getSecurityMaster());
    if (getCacheManager() != null) {
      source = new EHCachingFinancialSecuritySource(source, getCacheManager());
    }
    return source;
  }
View Full Code Here


    // the RedisCachingFinancialSecuritySource.
    /*JedisPool jedisPool = new JedisPool("localhost");
    source = new RedisCachingFinancialSecuritySource(source, jedisPool, "", OpenGammaFudgeContext.getInstance());*/
   
    if (getCacheManager() != null) {
      source = new EHCachingFinancialSecuritySource(source, getCacheManager());
    }
   
    if (getUnderlyingClassifier() != null) {
      ComponentInfo info = new ComponentInfo(SecuritySource.class, getUnderlyingClassifier());
      info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
View Full Code Here

   * @return the financial security source, not null
   */
  protected FinancialSecuritySource createFinancialSecuritySource(ComponentRepository repo) {
    FinancialSecuritySource source = new MasterFinancialSecuritySource(getSecurityMaster());
    if (getCacheManager() != null) {
      source = new EHCachingFinancialSecuritySource(source, getCacheManager());
    }
    return source;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.security.EHCachingFinancialSecuritySource

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.