类 ServiceAnnotationPostProcessor

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAware

    public class ServiceAnnotationPostProcessor
    extends Object
    implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.ApplicationContextAware
    A BeanFactoryPostProcessor used for processing of @Service annotated classes and annotated bean in java config classes. It's also the infrastructure class of XML BeanDefinitionParser on <dubbbo:annotation />
    从以下版本开始:
    2.7.7
    另请参阅:
    AnnotationBeanDefinitionParser, BeanDefinitionRegistryPostProcessor
    • 构造器详细资料

      • ServiceAnnotationPostProcessor

        public ServiceAnnotationPostProcessor​(String... packagesToScan)
      • ServiceAnnotationPostProcessor

        public ServiceAnnotationPostProcessor​(Collection<String> packagesToScan)
      • ServiceAnnotationPostProcessor

        public ServiceAnnotationPostProcessor​(Set<String> packagesToScan)
    • 方法详细资料

      • postProcessBeanDefinitionRegistry

        public void postProcessBeanDefinitionRegistry​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
                                               throws org.springframework.beans.BeansException
        指定者:
        postProcessBeanDefinitionRegistry 在接口中 org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
        抛出:
        org.springframework.beans.BeansException
      • postProcessBeanFactory

        public void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                                    throws org.springframework.beans.BeansException
        指定者:
        postProcessBeanFactory 在接口中 org.springframework.beans.factory.config.BeanFactoryPostProcessor
        抛出:
        org.springframework.beans.BeansException
      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        指定者:
        setEnvironment 在接口中 org.springframework.context.EnvironmentAware
      • setResourceLoader

        public void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
        指定者:
        setResourceLoader 在接口中 org.springframework.context.ResourceLoaderAware
      • setBeanClassLoader

        public void setBeanClassLoader​(ClassLoader classLoader)
        指定者:
        setBeanClassLoader 在接口中 org.springframework.beans.factory.BeanClassLoaderAware
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
        抛出:
        org.springframework.beans.BeansException