本文整理了Java中net.sf.ehcache.Ehcache.getSearchAttributes()
方法的一些代码示例,展示了Ehcache.getSearchAttributes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ehcache.getSearchAttributes()
方法的具体详情如下:
包路径:net.sf.ehcache.Ehcache
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!