org.springframework.context.annotation

Class AnnotationConfigUtils

  • java.lang.Object
    • org.springframework.context.annotation.AnnotationConfigUtils
    • Field Detail

      • CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME

        public static final java.lang.String CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME
        The bean name of the internally managed Configuration annotation processor.
        See Also:
        Constant Field Values
      • AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME

        public static final java.lang.String AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME
        The bean name of the internally managed Autowired annotation processor.
        See Also:
        Constant Field Values
      • REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME

        @Deprecated
        public static final java.lang.String REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME
        Deprecated. as of 5.1, since no Required processor is registered by default anymore
        The bean name of the internally managed Required annotation processor.
        See Also:
        Constant Field Values
      • COMMON_ANNOTATION_PROCESSOR_BEAN_NAME

        public static final java.lang.String COMMON_ANNOTATION_PROCESSOR_BEAN_NAME
        The bean name of the internally managed JSR-250 annotation processor.
        See Also:
        Constant Field Values
      • PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME

        public static final java.lang.String PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME
        The bean name of the internally managed JPA annotation processor.
        See Also:
        Constant Field Values
      • EVENT_LISTENER_PROCESSOR_BEAN_NAME

        public static final java.lang.String EVENT_LISTENER_PROCESSOR_BEAN_NAME
        The bean name of the internally managed @EventListener annotation processor.
        See Also:
        Constant Field Values
      • EVENT_LISTENER_FACTORY_BEAN_NAME

        public static final java.lang.String EVENT_LISTENER_FACTORY_BEAN_NAME
        The bean name of the internally managed EventListenerFactory.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AnnotationConfigUtils

        public AnnotationConfigUtils()
    • Method Detail

      • registerAnnotationConfigProcessors

        public static void registerAnnotationConfigProcessors(BeanDefinitionRegistry registry)
        Register all relevant annotation post processors in the given registry.
        Parameters:
        registry - the registry to operate on
      • registerAnnotationConfigProcessors

        public static java.util.Set<BeanDefinitionHolder> registerAnnotationConfigProcessors(BeanDefinitionRegistry registry,
                                                                                             @Nullable
                                                                                             java.lang.Object source)
        Register all relevant annotation post processors in the given registry.
        Parameters:
        registry - the registry to operate on
        source - the configuration source element (already extracted) that this registration was triggered from. May be null.
        Returns:
        a Set of BeanDefinitionHolders, containing all bean definitions that have actually been registered by this call
      • processCommonDefinitionAnnotations

        public static void processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd)