Java Code Examples for

The following examples show how to use These examples are extracted from open source projects. 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
 * Create a new PersistenceExceptionTranslationAdvisor.
 * @param beanFactory              the ListableBeanFactory to obtaining all
 *                                 PersistenceExceptionTranslators from
 * @param repositoryAnnotationType the annotation type to check for
ReactivePersistenceExceptionTranslationAdvisor(ListableBeanFactory beanFactory,
	Class<? extends Annotation> repositoryAnnotationType) {

	this.advice = new ReactivePersistenceExceptionTranslationInterceptor(beanFactory);
	this.pointcut = new AnnotationMatchingPointcut(repositoryAnnotationType, true) {
		public MethodMatcher getMethodMatcher() {
			return new StaticMethodMatcher() {

				@Override public boolean matches(Method method, Class<?> targetClass) {
					Class<?> returnType = method.getReturnType();
					return returnType == Mono.class || returnType == Flux.class;