You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2023/11/04 12:28:32 UTC

(dubbo) branch 3.3 updated: refactor: remove unuse applicationContext (#13285)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new 48c82c0462 refactor: remove unuse applicationContext (#13285)
48c82c0462 is described below

commit 48c82c0462cc117a69bb9704d716ecd649c762be
Author: lazy <65...@users.noreply.github.com>
AuthorDate: Sat Nov 4 07:28:26 2023 -0500

    refactor: remove unuse applicationContext (#13285)
    
    * refactor: remove unuse applicationContext
    
    * refactor: remove unused imports
---
 .../spring/context/DubboInfraBeanRegisterPostProcessor.java    | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/context/DubboInfraBeanRegisterPostProcessor.java b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/context/DubboInfraBeanRegisterPostProcessor.java
index 731d273b63..2071fdb298 100644
--- a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/context/DubboInfraBeanRegisterPostProcessor.java
+++ b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/context/DubboInfraBeanRegisterPostProcessor.java
@@ -22,9 +22,6 @@ import org.springframework.beans.BeansException;
 import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
 import org.springframework.beans.factory.support.BeanDefinitionRegistry;
 import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.ApplicationContextAware;
-
 
 /**
  * Register some infrastructure beans if not exists.
@@ -34,7 +31,7 @@ import org.springframework.context.ApplicationContextAware;
  * @see org.springframework.context.support.PostProcessorRegistrationDelegate#invokeBeanFactoryPostProcessors(
  *org.springframework.beans.factory.config.ConfigurableListableBeanFactory, java.util.List)
  */
-public class DubboInfraBeanRegisterPostProcessor implements BeanDefinitionRegistryPostProcessor, ApplicationContextAware {
+public class DubboInfraBeanRegisterPostProcessor implements BeanDefinitionRegistryPostProcessor {
 
     /**
      * The bean name of {@link ReferenceAnnotationBeanPostProcessor}
@@ -42,7 +39,6 @@ public class DubboInfraBeanRegisterPostProcessor implements BeanDefinitionRegist
     public static final String BEAN_NAME = "dubboInfraBeanRegisterPostProcessor";
 
     private BeanDefinitionRegistry registry;
-    private ApplicationContext applicationContext;
 
     @Override
     public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
@@ -70,8 +66,4 @@ public class DubboInfraBeanRegisterPostProcessor implements BeanDefinitionRegist
         }
     }
 
-    @Override
-    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
-        this.applicationContext = applicationContext;
-    }
 }