类org.springframework.util.ExceptionTypeFilter源码实例Demo

下面列出了怎么用org.springframework.util.ExceptionTypeFilter的API类实例代码及写法,或者点击链接到github查看源代码。

protected void cacheException(@Nullable Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
	if (exceptionCache == null) {
		return;
	}
	if (filter.match(ex.getClass())) {
		doPut(exceptionCache, cacheKey, ex);
	}
}
 
protected void cacheException(@Nullable Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
	if (exceptionCache == null) {
		return;
	}
	if (filter.match(ex.getClass())) {
		doPut(exceptionCache, cacheKey, ex);
	}
}
 
源代码3 项目: lams   文件: CacheResultInterceptor.java
protected void cacheException(Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
	if (exceptionCache == null) {
		return;
	}
	if (filter.match(ex.getClass())) {
		doPut(exceptionCache, cacheKey, ex);
	}
}
 
protected void cacheException(Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
	if (exceptionCache == null) {
		return;
	}
	if (filter.match(ex.getClass())) {
		exceptionCache.put(cacheKey, ex);
	}
}
 
源代码5 项目: spring-analysis-note   文件: CachePutOperation.java
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
/**
 * Convenience method for subclasses to create a specific {@code ExceptionTypeFilter}.
 * @see #getExceptionTypeFilter()
 */
protected ExceptionTypeFilter createExceptionTypeFilter(
		Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {

	return new ExceptionTypeFilter(Arrays.asList(includes), Arrays.asList(excludes), true);
}
 
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
源代码10 项目: java-technology-stack   文件: CachePutOperation.java
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
protected ExceptionTypeFilter createExceptionTypeFilter(
		Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {

	return new ExceptionTypeFilter(Arrays.asList(includes), Arrays.asList(excludes), true);
}
 
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
源代码15 项目: lams   文件: CachePutOperation.java
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
源代码16 项目: lams   文件: CacheRemoveAllOperation.java
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
源代码17 项目: lams   文件: CacheRemoveOperation.java
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
源代码18 项目: lams   文件: AbstractJCacheOperation.java
protected ExceptionTypeFilter createExceptionTypeFilter(
		Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {

	return new ExceptionTypeFilter(asList(includes), asList(excludes), true);
}
 
源代码19 项目: lams   文件: CacheResultOperation.java
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
源代码20 项目: spring4-understanding   文件: CachePutOperation.java
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
protected ExceptionTypeFilter createExceptionTypeFilter(
		Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {

	return new ExceptionTypeFilter(asList(includes), asList(excludes), true);
}
 
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
/**
 * Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
 * invoking the method.
 * @see #createExceptionTypeFilter
 */
public abstract ExceptionTypeFilter getExceptionTypeFilter();
 
/**
 * Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
 * invoking the method.
 */
public abstract ExceptionTypeFilter getExceptionTypeFilter();
 
源代码27 项目: lams   文件: AbstractJCacheOperation.java
/**
 * Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
 * invoking the method.
 */
public abstract ExceptionTypeFilter getExceptionTypeFilter();
 
/**
 * Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
 * invoking the method.
 */
public abstract ExceptionTypeFilter getExceptionTypeFilter();
 
 类所在包
 类方法
 同包方法