public static Set < BeanDefinitionHolder > registerAnnotationConfigProcessors ( BeanDefinitionRegistry registry , Object source , ReleaseId releaseId ) { Set < BeanDefinitionHolder > beanDefs = new LinkedHashSet < BeanDefinitionHolder > ( 1 ) ; if ( ! registry . containsBeanDefinition ( KIE_ANNOTATION_PROCESSOR_CLASS_NAME ) ) { RootBeanDefinition def = new RootBeanDefinition ( AnnotationsPostProcessor . class ) ; def . setSource ( source ) ; def . getPropertyValues ( ) . add ( "releaseId" , releaseId ) ; beanDefs . add ( registerPostProcessor ( registry , def , KIE_ANNOTATION_PROCESSOR_CLASS_NAME ) ) ; } return beanDefs ; }
Register all relevant annotation post processors in the given registry .