org.springframework.util.ExceptionTypeFilter Java Examples

The following examples show how to use org.springframework.util.ExceptionTypeFilter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CacheResultInterceptor.java    From spring-analysis-note with MIT License 5 votes vote down vote up
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);
	}
}
 
Example #2
Source File: CacheResultInterceptor.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
protected void cacheException(Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
	if (exceptionCache == null) {
		return;
	}
	if (filter.match(ex.getClass())) {
		exceptionCache.put(cacheKey, ex);
	}
}
 
Example #3
Source File: CacheResultInterceptor.java    From java-technology-stack with MIT License 5 votes vote down vote up
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);
	}
}
 
Example #4
Source File: CacheResultInterceptor.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
protected void cacheException(Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
	if (exceptionCache == null) {
		return;
	}
	if (filter.match(ex.getClass())) {
		doPut(exceptionCache, cacheKey, ex);
	}
}
 
Example #5
Source File: CacheResultOperation.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #6
Source File: AbstractJCacheOperation.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
protected ExceptionTypeFilter createExceptionTypeFilter(
		Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {

	return new ExceptionTypeFilter(asList(includes), asList(excludes), true);
}
 
Example #7
Source File: CacheRemoveOperation.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #8
Source File: CacheRemoveAllOperation.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #9
Source File: CachePutOperation.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #10
Source File: CacheResultOperation.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #11
Source File: AbstractJCacheOperation.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
protected ExceptionTypeFilter createExceptionTypeFilter(
		Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {

	return new ExceptionTypeFilter(asList(includes), asList(excludes), true);
}
 
Example #12
Source File: CacheRemoveOperation.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #13
Source File: CacheRemoveAllOperation.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #14
Source File: CachePutOperation.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #15
Source File: CacheResultOperation.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #16
Source File: AbstractJCacheOperation.java    From java-technology-stack with MIT License 4 votes vote down vote up
protected ExceptionTypeFilter createExceptionTypeFilter(
		Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {

	return new ExceptionTypeFilter(Arrays.asList(includes), Arrays.asList(excludes), true);
}
 
Example #17
Source File: CacheRemoveOperation.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #18
Source File: CacheRemoveAllOperation.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #19
Source File: CachePutOperation.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #20
Source File: CacheResultOperation.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #21
Source File: AbstractJCacheOperation.java    From spring-analysis-note with MIT License 4 votes vote down vote up
/**
 * 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);
}
 
Example #22
Source File: CacheRemoveOperation.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #23
Source File: CacheRemoveAllOperation.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #24
Source File: CachePutOperation.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
	return this.exceptionTypeFilter;
}
 
Example #25
Source File: AbstractJCacheOperation.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
 * invoking the method.
 */
public abstract ExceptionTypeFilter getExceptionTypeFilter();
 
Example #26
Source File: AbstractJCacheOperation.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
 * invoking the method.
 */
public abstract ExceptionTypeFilter getExceptionTypeFilter();
 
Example #27
Source File: AbstractJCacheOperation.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
 * invoking the method.
 * @see #createExceptionTypeFilter
 */
public abstract ExceptionTypeFilter getExceptionTypeFilter();
 
Example #28
Source File: AbstractJCacheOperation.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
 * invoking the method.
 */
public abstract ExceptionTypeFilter getExceptionTypeFilter();