public static Set < Annotation > flattenInterceptorBindings ( EnhancedAnnotatedType < ? > clazz , BeanManagerImpl beanManager , Collection < Annotation > annotations , boolean addTopLevelInterceptorBindings , boolean addInheritedInterceptorBindings ) { Set < Annotation > flattenInterceptorBindings = new InterceptorBindingSet ( beanManager ) ; MetaAnnotationStore metaAnnotationStore = beanManager . getServices ( ) . get ( MetaAnnotationStore . class ) ; if ( addTopLevelInterceptorBindings ) { addInterceptorBindings ( clazz , annotations , flattenInterceptorBindings , metaAnnotationStore ) ; } if ( addInheritedInterceptorBindings ) { for ( Annotation annotation : annotations ) { addInheritedInterceptorBindings ( clazz , annotation . annotationType ( ) , metaAnnotationStore , flattenInterceptorBindings ) ; } } return flattenInterceptorBindings ; }
Extracts a flat set of interception bindings from a given set of interceptor bindings .