net.sf.ehcache.Ehcache.getSearchAttributes()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(200)

本文整理了Java中net.sf.ehcache.Ehcache.getSearchAttributes()方法的一些代码示例,展示了Ehcache.getSearchAttributes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ehcache.getSearchAttributes()方法的具体详情如下:
包路径:net.sf.ehcache.Ehcache
类名称:Ehcache
方法名:getSearchAttributes

Ehcache.getSearchAttributes介绍

暂无

代码示例

代码示例来源:origin: net.sf.ehcache/ehcache

@Override
public Set<Attribute> getSearchAttributes() throws CacheException {
  return underlyingCache.getSearchAttributes();
}

代码示例来源:origin: net.sf.ehcache/ehcache

/**
* {@inheritDoc}
*/
public Set<Attribute> getSearchAttributes() throws CacheException {
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    return this.cache.getSearchAttributes();
  } finally {
    t.setContextClassLoader(prev);
  }
}

代码示例来源:origin: net.sf.ehcache/ehcache

private Collection<Attribute> getAttributesImpliedByStar(Ehcache cache) {
  return isIncludedTargetStar() ? cache.getSearchAttributes() : Collections.<Attribute>emptySet();
}

代码示例来源:origin: net.sf.ehcache/ehcache

@Override
public Map<String, String> getSearchAttributes() {
  Map<String, String> result = new HashMap<String, String>();
  
  if (cache != null && cache.getCacheConfiguration().getSearchable() != null) {
    Map<String, Attribute> attrMap = new HashMap<String, Attribute>();
    for (Attribute attr : cache.getSearchAttributes()) {
      attrMap.put(attr.getAttributeName(), attr);
    }
    
    for (SearchAttribute sa : cache.getCacheConfiguration().getSearchAttributes().values()) {
      String saName = sa.getName();
      String typeName = sa.getTypeName();
      if (attrMap.containsKey(saName) && typeName != null) {
        result.put(saName, typeName);
      }
    }
  }
  return result;
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

@Override
public Set<Attribute> getSearchAttributes() throws CacheException {
  return underlyingCache.getSearchAttributes();
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

@Override
public Set<Attribute> getSearchAttributes() throws CacheException {
  return underlyingCache.getSearchAttributes();
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

/**
* {@inheritDoc}
*/
public Set<Attribute> getSearchAttributes() throws CacheException {
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    return this.cache.getSearchAttributes();
  } finally {
    t.setContextClassLoader(prev);
  }
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
* {@inheritDoc}
*/
public Set<Attribute> getSearchAttributes() throws CacheException {
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    return this.cache.getSearchAttributes();
  } finally {
    t.setContextClassLoader(prev);
  }
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

private Collection<Attribute> getAttributesImpliedByStar(Ehcache cache) {
  return isIncludedTargetStar() ? cache.getSearchAttributes() : Collections.<Attribute>emptySet();
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

@Override
public Map<String, String> getSearchAttributes() {
  Map<String, String> result = new HashMap<String, String>();
  
  if (cache != null && cache.getCacheConfiguration().getSearchable() != null) {
    Map<String, Attribute> attrMap = new HashMap<String, Attribute>();
    for (Attribute attr : cache.getSearchAttributes()) {
      attrMap.put(attr.getAttributeName(), attr);
    }
    
    for (SearchAttribute sa : cache.getCacheConfiguration().getSearchAttributes().values()) {
      String saName = sa.getName();
      String typeName = sa.getTypeName();
      if (attrMap.containsKey(saName) && typeName != null) {
        result.put(saName, typeName);
      }
    }
  }
  return result;
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

@Override
public Map<String, String> getSearchAttributes() {
  Map<String, String> result = new HashMap<String, String>();
  
  if (cache != null && cache.getCacheConfiguration().getSearchable() != null) {
    Map<String, Attribute> attrMap = new HashMap<String, Attribute>();
    for (Attribute attr : cache.getSearchAttributes()) {
      attrMap.put(attr.getAttributeName(), attr);
    }
    
    for (SearchAttribute sa : cache.getCacheConfiguration().getSearchAttributes().values()) {
      String saName = sa.getName();
      String typeName = sa.getTypeName();
      if (attrMap.containsKey(saName) && typeName != null) {
        result.put(saName, typeName);
      }
    }
  }
  return result;
}

相关文章

Ehcache类方法