protected Pointcut buildPointcut ( Set < Class < ? extends Annotation > > retryAnnotationTypes ) { ComposablePointcut result = null ; for ( Class < ? extends Annotation > retryAnnotationType : retryAnnotationTypes ) { Pointcut filter = new AnnotationClassOrMethodPointcut ( retryAnnotationType ) ; if ( result == null ) { result = new ComposablePointcut ( filter ) ; } else { result . union ( filter ) ; } } return result ; }
Calculate a pointcut for the given retry annotation types if any .